aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.robertl/eb49.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.robertl/eb49.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.robertl/eb49.C49
1 files changed, 0 insertions, 49 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb49.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb49.C
deleted file mode 100644
index 95c454eaef1..00000000000
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb49.C
+++ /dev/null
@@ -1,49 +0,0 @@
-// Build don't link:
-// excess errors test
-
-// Here we declare ::S
-typedef struct s1 *S;
-
-struct s1
-{
- int s;
-};
-
-struct A
-{
- // Here we declare A::S
- typedef struct s1 *S;
-};
-
-template<class T, class U> class XX;
-
-template<class T, class U>
-class X
-{
-public:
- static T *do_something ();
- friend class T; // ERROR - `T' is a template parameter
- friend class XX<T, U>;
-};
-
-struct N
-{
- // Here we declare N::S
- class S
- {
- };
-
- // Should use N::S and A::S.
- typedef X<S, A::S> X_S;
-
- void bug ();
-};
-
-void
-N::bug ()
-{
- // X_S is template class X<N::S, A::S>
- // `s' is N::S.
- S *s = X_S::do_something ();
-}
-