summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/visibility/visibility-5.C
blob: 592529e665d6f65d323ed12060566e340639c255 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* Test visibility attribute on definition of a function that has
   already had a forward declaration. */
/* { dg-require-visibility "" }
/* { dg-final { scan-hidden "_Z3foov" } } */

void foo();

void 
 __attribute__((visibility ("hidden")))
foo() 
{ }