Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/visibility-4.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* Test visibility attribute on forward declaration of global variable */ | |
2 /* { dg-do compile } */ | |
3 /* { dg-require-visibility "" } */ | |
4 /* { dg-final { scan-hidden "xyzzy" } } */ | |
5 | |
6 extern int | |
7 __attribute__((visibility ("hidden"))) | |
8 xyzzy; | |
9 | |
10 int xyzzy = 5; |