Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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
;
}