repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/86728 - C variadic generic lambda.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
dc5.C
blob
57321626e9125647f942809e8987f9fe2bd70cc0
1
// { dg-do run { target c++11 } }
2
3
#include <cassert>
4
5
int count = 0;
6
struct VB
7
{
8
VB() {++count;}
9
};
10
11
struct B : virtual VB
12
{
13
B() : B(42) {}
14
B(int) {}
15
};
16
17
struct D : B
18
{
19
D() {}
20
D(int) : D() {}
21
};
22
23
int main()
24
{
25
D d{42};
26
assert(count == 1);
27
}