summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/visibility/visibility-2.C
blob: 26272abb1f9026fff55841ce5f3d8bdacb8d10d8 (plain)
1
2
3
4
5
6
7
/* Test that visibility attribute on declaration extends to definition. */
/* { dg-require-visibility "" }
/* { dg-final { scan-hidden "_Z3foov" } } */

void __attribute__((visibility ("hidden"))) foo();

void foo() { }