annotate gcc/testsuite/c-c++-common/attributes-enum-2.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Test enumerators with attributes. Test invalid uses. */
kono
parents:
diff changeset
2 /* PR c/47043 */
kono
parents:
diff changeset
3 /* { dg-do compile } */
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 enum E {
kono
parents:
diff changeset
6 A __attribute__((foo)), /* { dg-warning "ignored" } */
kono
parents:
diff changeset
7 B __attribute__((cold)), /* { dg-warning "ignored" } */
kono
parents:
diff changeset
8 C __attribute__((const)), /* { dg-warning "ignored" } */
kono
parents:
diff changeset
9 D __attribute__((unused)),
kono
parents:
diff changeset
10 E __attribute__((flatten)), /* { dg-warning "ignored" } */
kono
parents:
diff changeset
11 F __attribute__((tm)), /* { dg-warning "ignored" } */
kono
parents:
diff changeset
12 G __attribute__((common)), /* { dg-warning "ignored" } */
kono
parents:
diff changeset
13 H __attribute__((volatile)), /* { dg-warning "ignored" } */
kono
parents:
diff changeset
14 };