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