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
/
initlist-base2.C
blob
68ccad908c8b671459dd16d6f850a51effa17d13
1
// PR c++/55922
2
// { dg-do run { target c++11 } }
3
4
bool called = false;
5
6
struct Base {
7
Base() { if (called) throw 1; called = true; }
8
};
9
10
struct B1 : virtual Base {
11
B1() { }
12
};
13
14
struct C : B1, virtual Base {
15
C() : B1{}
16
{ }
17
};
18
19
int main() {
20
C c;
21
}