gcc/testsuite/g++.old-deja/g++.pt/instantiate7.C
raw| 1 | // { dg-do assemble } |
| 2 | |
| 3 | // Copyright (C) 2000 Free Software Foundation |
| 4 | // Contributed by Nathan Sidwell 6 July 2000 <[email protected]> |
| 5 | |
| 6 | template <class T> |
| 7 | void Wibble (void (*fn) (), T *const __restrict__ &p2) |
| 8 | {} |
| 9 | template<class T1, class T2> |
| 10 | void Wibble (T1 *const __restrict__ &p1, T2 *const __restrict__ &p2) |
| 11 | {} |
| 12 | |
| 13 | void Baz (); |
| 14 | |
| 15 | void Foo (void const *ptr) |
| 16 | { |
| 17 | Wibble (&Baz, ptr); |
| 18 | } |