diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/repo1.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/repo1.C | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/repo1.C b/gcc/testsuite/g++.old-deja/g++.pt/repo1.C new file mode 100644 index 00000000000..f57b2c22fd0 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/repo1.C @@ -0,0 +1,18 @@ +// Bug: g++ complains about duplicate explicit instantiations with -frepo. +// From Jason Merrill <jason@cygnus.com> + +// Build then link: +// Special g++ Options: -frepo + +template <class T> struct A { + virtual ~A () { } +}; + +template <class T> void g (T t) { } + +template class A<int>; + +int main () +{ + g (42); +} |