]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/g++.dg/cpp0x/initlist67.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / initlist67.C
1 // PR c++/50478
2 // { dg-do compile { target c++11 } }
3
4 #include <initializer_list>
5
6 namespace std
7 {
8 template<typename _Key>
9 struct set
10 {
11 void insert(const _Key&);
12 void insert(initializer_list<_Key>);
13 };
14
15 struct string
16 {
17 string(const string&, __SIZE_TYPE__, __SIZE_TYPE__ = -1);
18 string(const char*);
19 string(initializer_list<char>);
20 };
21 }
22
23 int main()
24 {
25 std::set<std::string> s;
26 s.insert( { "abc", "def", "hij"} );
27 }
This page took 0.037559 seconds and 5 git commands to generate.