2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / ext / visibility-5.C
blob9cdc8021e470df69c678b997d586c74698c32297
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" } } */
6 void foo();
8 void 
9  __attribute__((visibility ("hidden")))
10 foo() 
11 { }