From 54c6909334dcb567804859c03930d61b162f04d8 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Thu, 6 Jul 2000 15:34:53 +0000 Subject: [PATCH] * g++.old-deja/g++.pt/instantiate7.C: New test. From-SVN: r34889 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/g++.old-deja/g++.pt/instantiate7.C | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.pt/instantiate7.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4da105c..4133757 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2000-07-06 Nathan Sidwell + * g++.old-deja/g++.pt/instantiate7.C: New test. + +2000-07-06 Nathan Sidwell + * g++.old-deja/g++.mike/thunk2.C: Add return 0. * g++.old-deja/g++.mike/thunk3.C: Likewise. * g++.old-deja/g++.other/rtti3.C: Likewise. 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 0000000..a142dfa --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/instantiate7.C @@ -0,0 +1,18 @@ +// Build don't link: + +// Copyright (C) 2000 Free Software Foundation +// Contributed by Nathan Sidwell 6 July 2000 + +template +void Wibble (void (*fn) (), T *const __restrict__ &p2) +{} +template +void Wibble (T1 *const __restrict__ &p1, T2 *const __restrict__ &p2) +{} + +void Baz (); + +void Foo (void const *ptr) +{ + Wibble (&Baz, ptr); +} -- 2.7.4