1 /* Test warning from conflicting visibility specifications. */
2 /* { dg-require-visibility "protected" } */
3 /* { dg-final { scan-hidden "xyzzy" } } */
6 __attribute__((visibility ("hidden")))
7 xyzzy; /* { dg-warning "previous declaration here" "" } */
10 __attribute__((visibility ("protected")))
11 xyzzy = 5; /* { dg-warning "visibility attribute ignored" "" } */