Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist-base2.C
blob: 68ccad908c8b671459dd16d6f850a51effa17d13 [
file
] [
log
] [
blame
]
// PR c++/55922
// { dg-do run { target c++11 } }
bool
called
=
false
;
struct
Base
{
Base
()
{
if
(
called
)
throw
1
;
called
=
true
;
}
};
struct
B1
:
virtual
Base
{
B1
()
{
}
};
struct
C
:
B1
,
virtual
Base
{
C
()
:
B1
{}
{
}
};
int
main
()
{
C c
;
}