Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/lto/pr87089_0.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
1 // { dg-lto-do link } | |
2 // { dg-extra-ld-options "-r -nostdlib -flinker-output=nolto-rel" } | |
3 namespace itpp { | |
4 template <class a> void b(a *c) { c[0].~a(); } | |
5 class CFix; | |
6 template <class> class d { | |
7 void e(const char *); | |
8 CFix *data; | |
9 }; | |
10 class CFix { | |
11 public: | |
12 virtual ~CFix(); | |
13 }; | |
14 template <> void d<int>::e(const char *) { b(data); } | |
15 } // namespace itpp | |
16 | |
17 int | |
18 main (void) | |
19 { | |
20 return 0; | |
21 } |