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