diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3f69198fe8f2..10a4b14284b4 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2000-02-29 Nathan Sidwell + + * g++.old-deja/g++.pt/unify7.C: New test. + Sat Feb 26 19:46:09 2000 Richard Kenner * 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 000000000000..6afb823884c0 --- /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 + +// template functions can be distinguished by return type alone. The return +// type may also be a template parameter. + +template C foo (); // gets bogus error + +void g () +{ + int (*pfn1) () = &foo; // gets bogus error + void (*pfn2) () = &foo; // gets bogus error +}