* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / initlist92.C
blob81a63182f0e24d410e2649dde89e2b87c4be292b
1 // PR c++/64665, DR 1467 
2 // { dg-do run { target c++11 } }
4 #include <string>
5 #include <cassert>
7 bool Test1(bool) 
9   return true;
11 bool Test1(std::string)
13   return false;
16 bool Test2(int)
18   return false;
20 bool Test2(std::initializer_list<int>)
22   return true;
25 struct S 
26
27     S(int _a) : a(_a) {}
28 private:
29     int a;
31 bool Test3(int)
33   return true;
35 bool Test3(S)
37   return false;
40 bool Test4(bool) 
42   return false;
44 bool Test4(std::initializer_list<std::string>)
46   return true;
49 int main () 
51   assert ( Test1({"false"}) );
52   assert ( Test2({123}) );
53   assert ( Test3({456}) );
54   assert ( Test4({"false"}) );