summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/operator.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/operator.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.jason/operator.C31
1 files changed, 0 insertions, 31 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/operator.C b/gcc/testsuite/g++.old-deja/g++.jason/operator.C
deleted file mode 100644
index bd21e378e14..00000000000
--- a/gcc/testsuite/g++.old-deja/g++.jason/operator.C
+++ /dev/null
@@ -1,31 +0,0 @@
-// General test for operator overloading permissiveness.
-// Build don't link:
-// Special g++ Options:
-
-typedef __SIZE_TYPE__ size_t;
-
-struct A {
- int operator?:(int a, int b); // WARNING -
- static int operator()(int a); // ERROR - must be nonstatic
- static int operator+(A,A); // ERROR - must be nonstatic
- int operator+(int a, int b = 1); // ERROR - two errors on this line
- int operator++(char); // ERROR - must take 'int'
- void operator delete (void *);
- void operator delete (void *, unsigned long);
-};
-
-struct B {
- void * operator new (size_t, void *);
- int operator++(int = 0);
- int operator+ (int);
- void operator()();
- char * operator[](int);
- B * operator->();
-};
-
-int operator-(int a, int b); // ERROR - no class argument
-
-void * operator new (A a); // ERROR - invalid first argument
-void operator delete (A a); // ERROR - ditto
-
-char * operator char * (int); // ERROR - return value, nonmember