gcc/testsuite/g++.old-deja/g++.pt/unify7.C
raw| 1 | // { dg-do assemble } |
| 2 | |
| 3 | // Copyright (C) 2000 Free Software Foundation, Inc. |
| 4 | // Contributed by Nathan Sidwell 26 Feb 2000 <[email protected]> |
| 5 | |
| 6 | // template functions can be distinguished by return type alone. The return |
| 7 | // type may also be a template parameter. |
| 8 | |
| 9 | template <typename C> C foo (); // { dg-bogus "" } |
| 10 | |
| 11 | void g () |
| 12 | { |
| 13 | int (*pfn1) () = &foo; // { dg-bogus "" } |
| 14 | void (*pfn2) () = &foo; // { dg-bogus "" } |
| 15 | } |