OSDN Git Service

PR c/13134
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / ext / visibility-2.C
1 /* Test that visibility attribute on declaration extends to definition. */
2 /* { dg-do compile { target *86-*-linux* } } */
3 /* { dg-final { scan-assembler "\\.hidden.*_Z3foov" } } */
4
5 void __attribute__((visibility ("hidden"))) foo();
6
7 void foo() { }