OSDN Git Service

new
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Sep 1999 18:35:51 +0000 (18:35 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Sep 1999 18:35:51 +0000 (18:35 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29480 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/g++.old-deja/g++.pt/repo2.C [new file with mode: 0644]

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 (file)
index 0000000..4067d0c
--- /dev/null
@@ -0,0 +1,22 @@
+// Test that collect2 isn't confused by GNU ld's "In function `foo':" message.
+// Contributed by Jason Merrill <jason@cygnus.com>
+
+// Build then link:
+// Special g++ Options: -frepo
+
+template <class T>
+T f (T t)
+{
+  return t;
+}
+
+template <class T>
+T g (T t)
+{
+  return f (t);
+}
+
+int main ()
+{
+  int i = g (42);
+}