Add execution tests of ARM EXT intrinsics
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / initlist72.C
blob98fc79f1d1738079cac3df57de499b45bc85a1d0
1 // DR 1589
2 // { dg-require-effective-target c++11 }
4 #include <initializer_list>
6 struct Pair
8   Pair(const char *, const char *);
9 };
11 struct String
13   String(const char *);
16 void f1(int);                        // #1
17 int f1(std::initializer_list<long>); // #2
18 int g1() { return f1({42}); }        // chooses #2
20 void f2(Pair);                         // #3
21 int f2(std::initializer_list<String>); // #4
22 int g2() { return f2({"foo","bar"}); } // chooses #4