* g++.old-deja/g++.pt/unify7.C: New test.
From-SVN: r32254
This commit is contained in:
parent
8d3631f8a3
commit
2a6b78095f
@ -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.
|
||||
|
15
gcc/testsuite/g++.old-deja/g++.pt/unify7.C
Normal file
15
gcc/testsuite/g++.old-deja/g++.pt/unify7.C
Normal file
@ -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
|
||||
}
|
Loading…
Reference in New Issue
Block a user