Sign in
gnu
/
gcc
/
14bc1c0e15633ea781d76d0ae4274b2e27d51db5
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
vbase2.C
blob: 2f15249b41815cae257ac296e64dc68c8ddc6c6e [
file
] [
log
] [
blame
]
// Origin: Mark Mitchell <mark@codesourcery.com>
int
i
;
struct
A
{
~
A
();
};
A
::~
A
()
{
i
=
1
;
}
struct
B
:
virtual
public
A
{
};
struct
C
{
C
();
B b
;
};
C
::
C
()
{
throw
3
;
}
int
main
()
{
try
{
C c
;
}
catch
(...)
{
}
if
(
i
!=
1
)
return
1
;
}