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
Dead
[official-gcc.git]
/
gomp-20050608-branch
/
gcc
/
testsuite
/
gcc.dg
/
visibility-2.c
blob
0977abac2b8d47926bdd80f613a78eadd416ae2e
1
/* Test that visibility attribute on declaration extends to definition. */
2
/* { dg-do compile } */
3
/* { dg-require-visibility "" } */
4
/* { dg-final { scan-hidden "foo" } } */
5
6
void
7
__attribute__
((
visibility
(
"hidden"
)))
8
foo
();
9
10
void
foo
() { }