[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gcc.dg / visibility-1.c
blob864b971dd64c3ca9da11dcca317dc8891b1a77f6
1 /* Test visibility attribute on function definition. */
2 /* { dg-do compile } */
3 /* { dg-require-visibility "" } */
4 /* { dg-final { scan-hidden "foo" } } */
6 void
7 __attribute__((visibility ("hidden")))
8 foo()
9 { }