* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-attribute2.C
blobc174cb3ebc52000dd19ee02292a0bf2c14ad3499
1 // { dg-do compile { target init_priority } }
2 // { dg-require-effective-target c++11 }
4 struct t { t(); };
6 constexpr int prio = 123;
7 constexpr int size = 8;
8 constexpr int pos = 1;
9 enum A { zero = 0, one, two };
10 __attribute__((init_priority(prio))) t a;
12 enum class E1 : int {
13     first = 101,
14     second,
15     third,
17 __attribute__((init_priority(E1::second))) t b; // Should not compile?
19 enum E2 {
20     E2_first = 141,
21     E2_second,
22     E2_third,
24 __attribute__((init_priority(E2_second))) t c;
26 void* my_calloc(unsigned, unsigned) __attribute__((alloc_size(pos,two)));
27 void* my_realloc(void*, unsigned) __attribute__((alloc_size(two)));
29 typedef char vec __attribute__((vector_size(size)));
31 void f(char*) __attribute__((nonnull(pos)));
33 char g __attribute__((aligned(size)));