repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Revert DECL_USER_ALIGN part of r241959
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
visibility-4.c
blob
af0d461c3d9eb0c5f694e6d8d54675c2defb9bc2
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
;