Debian Codegraph @

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

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