2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / visibility-7.c
blobe98b432c827982ea3afee83b99f5e410717c326e
1 /* Test warning from conflicting visibility specifications. */
2 /* { dg-do compile } */
3 /* { dg-require-visibility "" } */
4 /* { dg-final { scan-assembler "\\.hidden.*xyzzy" } } */
6 extern int
7 __attribute__((visibility ("hidden")))
8 xyzzy; /* { dg-warning "previous declaration here" "" } */
10 int
11 __attribute__((visibility ("protected")))
12 xyzzy = 5; /* { dg-warning "visibility attribute ignored" "" } */