OSDN Git Service

2012-12-15 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / initlist11.C
1 // PR c++/38684
2 // { dg-options "-std=c++0x" }
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 }