aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/unify6.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/template/unify6.C')
-rw-r--r--gcc/testsuite/g++.dg/template/unify6.C22
1 files changed, 0 insertions, 22 deletions
diff --git a/gcc/testsuite/g++.dg/template/unify6.C b/gcc/testsuite/g++.dg/template/unify6.C
deleted file mode 100644
index ee6a8ce0fdb..00000000000
--- a/gcc/testsuite/g++.dg/template/unify6.C
+++ /dev/null
@@ -1,22 +0,0 @@
-// Copyright (C) 2004 Free Software Foundation, Inc.
-// Contributed by Nathan Sidwell 1 Apr 2004 <nathan@codesourcery.com>
-
-void Baz ();
-
-template <typename T> void Foo1 (T *); // #1
-template <typename T> void Foo1 (T const *a) {a (1);} // #2
-
-template <typename T> T const *Foo2 (T *);
-
-template <typename T> void Foo3 (T *, T const * = 0);
-
-void Bar ()
-{
- Foo1 (&Baz); // #1
-
- Foo2 (&Baz);
-
- Foo3 (&Baz);
-
- Foo3 (&Baz, &Baz); // { dg-error "no matching function" "" }
-}