aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/initlist40.C
blob: 6e6a11a64541b1f5393365790e16a74719c5d028 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/54835, DR 1518
// { dg-do compile { target c++11 } }

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

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