diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/ambig1.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/ambig1.C | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/ambig1.C b/gcc/testsuite/g++.old-deja/g++.other/ambig1.C deleted file mode 100644 index d6574a2b79c..00000000000 --- a/gcc/testsuite/g++.old-deja/g++.other/ambig1.C +++ /dev/null @@ -1,28 +0,0 @@ -// Build don't link: - -struct A { - int operator ++(); // ERROR - candidates - void operator ()(); // ERROR - candidates - void operator delete(void*); // ERROR - candidates -}; - -struct B { - int operator ++(int); // ERROR - candidates - void operator ()(); // ERROR - candidates - void operator delete(void*); // ERROR - candidates - void f(); -}; - -struct C : public A, public B { -}; - -void f() -{ - C c; - C* cp; - - delete cp; // ERROR - ambiguous - c(); // ERROR - ambiguous - c++; // ERROR - ambiguous -} - |