Rebase.
[official-gcc.git] / gcc / testsuite / g++.dg / ext / visibility / visibility-7.C
blob0a6e4ba637b8c36b92e13f8384e60ee364838a6a
1 /* Test warning from conflicting visibility specifications. */
2 /* { dg-require-visibility "protected" } */
3 /* { dg-final { scan-hidden "xyzzy" } } */
5 extern int 
6 __attribute__((visibility ("hidden")))
7 xyzzy; /* { dg-message "previous declaration" "" } */
9 int 
10 __attribute__((visibility ("protected")))
11 xyzzy = 5; /* { dg-warning "visibility attribute ignored" "" } */