aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2000-02-29 10:30:56 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2000-02-29 10:30:56 +0000
commit2a6b78095fe6a1a807d4a1f3b0ae3df9c867a663 (patch)
tree73ab21f7cd909a54842a6c5e881fb380bd3cdf9c
parent8d3631f8a345db1d5d5301a62618004b339a4dec (diff)
downloadgcc-2a6b78095fe6a1a807d4a1f3b0ae3df9c867a663.zip
gcc-2a6b78095fe6a1a807d4a1f3b0ae3df9c867a663.tar.gz
gcc-2a6b78095fe6a1a807d4a1f3b0ae3df9c867a663.tar.bz2
* g++.old-deja/g++.pt/unify7.C: New test.
From-SVN: r32254
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/unify7.C15
2 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 3f69198..10a4b14 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2000-02-29 Nathan Sidwell <nathan@codesourcery.com>
+
+ * g++.old-deja/g++.pt/unify7.C: New test.
+
Sat Feb 26 19:46:09 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* g++.old-deja/g++.ext/attrib5.C: XFAIL on Alpha since no link alias.
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/unify7.C b/gcc/testsuite/g++.old-deja/g++.pt/unify7.C
new file mode 100644
index 0000000..6afb8238
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.pt/unify7.C
@@ -0,0 +1,15 @@
+// Build don't link:
+
+// Copyright (C) 2000 Free Software Foundation, Inc.
+// Contributed by Nathan Sidwell 26 Feb 2000 <nathan@codesourcery.com>
+
+// template functions can be distinguished by return type alone. The return
+// type may also be a template parameter.
+
+template <typename C> C foo (); // gets bogus error
+
+void g ()
+{
+ int (*pfn1) () = &foo; // gets bogus error
+ void (*pfn2) () = &foo; // gets bogus error
+}