Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/initlist11.C

raw
1 // PR c++/38684
2 // { dg-do compile { target c++11 } }
3
4 #include <initializer_list>
5
6 struct Y {};
7
8 struct X : Y {
9 X(std::initializer_list<int>) {}
10 };
11
12 struct A {
13 X v;
14 };
15
16 int main() {
17 A a{ {1,2,3} };
18 }