OSDN Git Service

PR c/13134
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / ext / visibility-7.C
1 /* Test warning from conflicting visibility specifications. */
2 /* { dg-do compile { target *86-*-linux* } } */
3 /* { dg-final { scan-assembler "\\.hidden.*xyzzy" } } */
4
5 extern int 
6 __attribute__((visibility ("hidden")))
7 xyzzy; /* { dg-warning "previous declaration here" "" } */
8
9 int 
10 __attribute__((visibility ("protected")))
11 xyzzy = 5; /* { dg-warning "visibility attribute ignored" "" } */