diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/instantiate7.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/instantiate7.C | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/instantiate7.C b/gcc/testsuite/g++.old-deja/g++.pt/instantiate7.C new file mode 100644 index 000000000..b0145028b --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/instantiate7.C @@ -0,0 +1,18 @@ +// { dg-do assemble } + +// Copyright (C) 2000 Free Software Foundation +// Contributed by Nathan Sidwell 6 July 2000 <nathan@codesourcery.com> + +template <class T> +void Wibble (void (*fn) (), T *const __restrict__ &p2) +{} +template<class T1, class T2> +void Wibble (T1 *const __restrict__ &p1, T2 *const __restrict__ &p2) +{} + +void Baz (); + +void Foo (void const *ptr) +{ + Wibble (&Baz, ptr); +} |