From: Jason Merrill Date: Thu, 19 Aug 1999 21:18:22 +0000 (-0400) Subject: new X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=607eef6e92d2fcd08870fc7e6cc8addcef967841;p=gcc.git new From-SVN: r28766 --- 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 + +// Build then link: +// Special g++ Options: -frepo + +template struct A { + virtual ~A () { } +}; + +template void g (T t) { } + +template class A; + +int main () +{ + g (42); +}