Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/template/instantiate11.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++/42608 |
2 // { dg-do compile } | |
3 | |
4 template <class U, class V> | |
5 struct A; | |
6 | |
7 template <class V> | |
8 struct A<int, V> | |
9 { | |
10 void f (); | |
11 }; | |
12 | |
13 template struct A<int, int>; | |
14 | |
15 int | |
16 main () | |
17 { | |
18 A<int, int> a; | |
19 a.f (); | |
20 return 0; | |
21 } | |
22 | |
23 // Make sure we get undefined reference error if | |
24 // A<int, int>::f () isn't instantiated elsewhere. | |
25 // { dg-final { scan-assembler-not "weak\[\n\t\]*_ZN1AIiiE1fEv" } } |