Sign in
gnu
/
gcc
/
57ea00136418991e847e46a6946a81a1df70c9a4
/
.
/
gcc
/
testsuite
/
g++.dg
/
ext
/
visibility-2.C
blob: 89e853c4dc5ce7532a0335af6b2940648626a182 [
file
] [
log
] [
blame
]
/* Test that visibility attribute on declaration extends to definition. */
/* { dg-do compile { target *86-*-linux* } } */
/* { dg-final { scan-assembler "\\.hidden.*_Z3foov" } } */
void
__attribute__
((
visibility
(
"hidden"
)))
foo
();
void
foo
()
{
}