Debian Codegraph @

gcc/testsuite/g++.dg/ext/visibility/template10.C

raw
1 // PR c++/51930
2 // { dg-require-visibility "" }
3 // { dg-options -fvisibility=hidden }
4 // { dg-final { scan-not-hidden "_Z8testfuncI3fooEvv" } }
5
6 struct foo { };
7
8 template<typename T>
9 __attribute__ ((visibility("default")))
10 void testfunc();
11
12 template<typename T> void testfunc() { }
13
14 template
15 __attribute__ ((visibility("default")))
16 void testfunc<foo>();