OSDN Git Service

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