| 1 |
/* Test enumerators with attributes. Test invalid uses. */ |
| 2 |
/* PR c/47043 */ |
| 3 |
/* { dg-do compile } */ |
| 4 |
|
| 5 |
enum E { |
| 6 |
A __attribute__((foo)), /* { dg-warning "ignored" } */ |
| 7 |
B __attribute__((cold)), /* { dg-warning "ignored" } */ |
| 8 |
C __attribute__((const)), /* { dg-warning "ignored" } */ |
| 9 |
D __attribute__((unused)), |
| 10 |
E __attribute__((flatten)), /* { dg-warning "ignored" } */ |
| 11 |
F __attribute__((tm)), /* { dg-warning "ignored" } */ |
| 12 |
G __attribute__((common)), /* { dg-warning "ignored" } */ |
| 13 |
H __attribute__((volatile)), /* { dg-warning "ignored" } */ |
| 14 |
}; |