* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-ctor19.C
blobf5ef053e0c44b5c89a10ae0dfc555f6302c2105d
1 // PR c++/70229
2 // { dg-do compile { target c++11 } }
4 template <class>
5 class S {
6   constexpr S (void) {
7     typedef int T;
8   }
9 };
11 template <class>
12 class S2 {
13   constexpr S2 (void) {
14     ;
15   }
18 template <class>
19 class S3 {
20   constexpr S3 (void) {
21     typedef enum { X } E;
22   } // { dg-error "does not have empty body" "" { target c++11_only } }
25 template <class>
26 class S4 {
27   constexpr S4 (void) {
28     typedef struct { int j; } U;
29   } // { dg-error "does not have empty body" "" { target c++11_only } }
32 struct V
34   int i;
37 template <class>
38 class S5 {
39   constexpr S5 (void) {
40     typedef V W;
41   }