* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-diag5.C
blob708f5f2b3f82abff55c45ae0e3892b09150d3e07
1 // Origin: PR c++/51633
2 // { dg-do compile { target c++11 } }
4 struct A
6     constexpr A() {}
7     ~A();
8 };
10 struct B
12     A a;
13     A b;
14     A c;
15     constexpr B() {}
18 struct C
20     A a;
21     constexpr C() {}
24 struct D
26     constexpr D() { return;} // { dg-error "does not have empty body" "" { target c++11_only } }
29 struct D1
31     A a;
32     constexpr D1() { return;} // { dg-error "does not have empty body" "" { target c++11_only } }
35 struct D2
37     A a;
38     A b;
39     constexpr D2() { return;} // { dg-error "does not have empty body" "" { target c++11_only } }
42 struct D3
44     A a;
45     A b;
46     A c;
47     constexpr D3() { return;} // { dg-error "does not have empty body" "" { target c++11_only } }