No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gcc4 / gcc / testsuite / gcc.dg / visibility-7.c
blobaaa8165e3e0b85dbe670015d632425fa07d7c38c
1 /* Test warning from conflicting visibility specifications. */
2 /* { dg-do compile } */
3 /* { dg-require-visibility "protected" } */
4 /* { dg-final { scan-hidden "xyzzy" } } */
6 extern int
7 __attribute__((visibility ("hidden")))
8 xyzzy; /* { dg-warning "previous declaration" "" } */
10 int
11 __attribute__((visibility ("protected")))
12 xyzzy = 5; /* { dg-warning "different visibility" "" } */