1 // { dg-do compile { target init_priority } }
2 // { dg-require-effective-target c++11 }
6 constexpr int prio = 123;
7 constexpr int size = 8;
9 enum A { zero = 0, one, two };
10 __attribute__((init_priority(prio))) t a;
17 __attribute__((init_priority(E1::second))) t b; // Should not compile?
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)));