OSDN Git Service

PR c/17844
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / visibility-1.c
1 /* Test visibility attribute on function definition. */
2 /* { dg-do compile } */
3 /* { dg-require-visibility "" } */
4 /* { dg-final { scan-assembler "\\.hidden.*foo" } } */
5
6 void
7 __attribute__((visibility ("hidden")))
8 foo()
9 { }