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

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