diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.brendan/arm2.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.brendan/arm2.C | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/arm2.C b/gcc/testsuite/g++.old-deja/g++.brendan/arm2.C deleted file mode 100644 index 62bdc3d2a39..00000000000 --- a/gcc/testsuite/g++.old-deja/g++.brendan/arm2.C +++ /dev/null @@ -1,19 +0,0 @@ -// Build don't link: -// GROUPS passed ARM-compliance -// ARM 9.4 ``There cannot be a static and a nonstatic member function -// with the same name and the same argument types.'' -// -// The trick is to make sure it's caught with both orders (static, -// then normal, and vice-versa. - -class X { -public: - int foo(); - static int foo(); // error: redeclaration// ERROR - .* -}; - -class Y { -public: - static int foo(); - int foo(); // error: redeclaration// ERROR - .* -}; |