* g++.old-deja/g++.pt/instantiate7.C: New test.
From-SVN: r34889
This commit is contained in:
parent
a5f1c5f89b
commit
54c6909334
2 changed files with 22 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
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.
|
||||
|
|
18
gcc/testsuite/g++.old-deja/g++.pt/instantiate7.C
Normal file
18
gcc/testsuite/g++.old-deja/g++.pt/instantiate7.C
Normal file
|
@ -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);
|
||||
}
|
Loading…
Add table
Reference in a new issue