Debian Codegraph @

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

raw
1 // Test that we try normal init if no list ctor is viable.
2 // { dg-do compile { target c++11 } }
3
4 #include <initializer_list>
5
6 struct B {};
7
8 struct C
9 {
10 C(B);
11 };
12
13 struct A
14 {
15 A(std::initializer_list<int>);
16 A(B) { }
17 A(C);
18 };
19
20 B b;
21 A a{b};