Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
dc5.C
blob: 57321626e9125647f942809e8987f9fe2bd70cc0 [
file
] [
log
] [
blame
]
// { dg-do run { target c++11 } }
#include
<cassert>
int
count
=
0
;
struct
VB
{
VB
()
{++
count
;}
};
struct
B
:
virtual
VB
{
B
()
:
B
(
42
)
{}
B
(
int
)
{}
};
struct
D
:
B
{
D
()
{}
D
(
int
)
:
D
()
{}
};
int
main
()
{
D d
{
42
};
assert
(
count
==
1
);
}