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