Debian Codegraph @

gcc/testsuite/g++.dg/ext/visibility/visibility-2.C

raw
1 /* Test that visibility attribute on declaration extends to definition. */
2 /* { dg-require-visibility "" }
3 /* { dg-final { scan-hidden "_Z3foov" } } */
4
5 void __attribute__((visibility ("hidden"))) foo();
6
7 void foo() { }