OSDN Git Service

* g++.old-deja/g++.pt/instantiate7.C: New test.
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 Jul 2000 15:34:53 +0000 (15:34 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 Jul 2000 15:34:53 +0000 (15:34 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34889 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.pt/instantiate7.C [new file with mode: 0644]

index 4da105c..4133757 100644 (file)
@@ -1,5 +1,9 @@
 2000-07-06  Nathan Sidwell  <nathan@codesourcery.com>
 
+       * g++.old-deja/g++.pt/instantiate7.C: New test.
+
+2000-07-06  Nathan Sidwell  <nathan@codesourcery.com>
+
        * 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 (file)
index 0000000..a142dfa
--- /dev/null
@@ -0,0 +1,18 @@
+// Build don't link:
+
+// 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);
+}