aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8.1/gcc/testsuite/g++.dg/cpp0x/initlist40.C
blob: f2703602c9e2c31737281b50ffaae1572d4d4fbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-options "-std=c++0x" }

struct A
{
  explicit A(int = 42);
};

int main()
{
  A a1 = { };
  A a2 = { 24 };		// { dg-error "explicit" }
}