From: Jason Merrill Date: Fri, 17 Sep 1999 18:35:51 +0000 (-0400) Subject: new X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3db9b900f324bee6c516ca7f852d7e2f86314cd6;p=gcc.git new From-SVN: r29480 --- diff --git a/gcc/testsuite/g++.old-deja/g++.pt/repo2.C b/gcc/testsuite/g++.old-deja/g++.pt/repo2.C new file mode 100644 index 00000000000..4067d0c90f3 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/repo2.C @@ -0,0 +1,22 @@ +// Test that collect2 isn't confused by GNU ld's "In function `foo':" message. +// Contributed by Jason Merrill + +// Build then link: +// Special g++ Options: -frepo + +template +T f (T t) +{ + return t; +} + +template +T g (T t) +{ + return f (t); +} + +int main () +{ + int i = g (42); +}