aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/typeck4.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.law/typeck4.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.law/typeck4.C21
1 files changed, 0 insertions, 21 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.law/typeck4.C b/gcc/testsuite/g++.old-deja/g++.law/typeck4.C
deleted file mode 100644
index 9b510c05725..00000000000
--- a/gcc/testsuite/g++.old-deja/g++.law/typeck4.C
+++ /dev/null
@@ -1,21 +0,0 @@
-// Build don't link:
-// GROUPS passed typeck
-class A {
- public:
- const int &operator[]( int i );
- private:
- int k;
-};
-
-const int& A::operator[]( int i )
-{
- return k;
-}
-
-
-void ff( A &anA )
-{
- int &ani = anA[0];// ERROR -
-
- ani = 7;
-}