]> gcc.gnu.org Git - gcc.git/blame - gcc/testsuite/g++.dg/cpp0x/initlist72.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / initlist72.C
CommitLineData
b47a3fef
JM
1// DR 1589
2// { dg-require-effective-target c++11 }
3
4#include <initializer_list>
5
6struct Pair
7{
8 Pair(const char *, const char *);
9};
10
11struct String
12{
13 String(const char *);
14};
15
16void f1(int); // #1
17int f1(std::initializer_list<long>); // #2
18int g1() { return f1({42}); } // chooses #2
19
20void f2(Pair); // #3
21int f2(std::initializer_list<String>); // #4
22int g2() { return f2({"foo","bar"}); } // chooses #4
This page took 4.72889 seconds and 5 git commands to generate.