Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/ext/visibility/template11.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 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>; |