Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / nsdmi3.C
blob8276eab8f8056f57614e8b74b6fd400792251ab8
1 // { dg-do compile { target c++11 } }
3 struct A
5   int i;
6   explicit constexpr A(int i): i(i) {}
7 };
9 struct B
11   A a1 = 1;                     // { dg-error "" }
12   A a2 { 2 };
13   A a3 = { 3 };                 // { dg-error "explicit" }
16 constexpr B b;
18 // { dg-prune-output "B::B. is not usable" }
19 // { dg-prune-output "B::a1" }