diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.bugs/900407_02.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.bugs/900407_02.C | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900407_02.C b/gcc/testsuite/g++.old-deja/g++.bugs/900407_02.C deleted file mode 100644 index 5f6862f2fea..00000000000 --- a/gcc/testsuite/g++.old-deja/g++.bugs/900407_02.C +++ /dev/null @@ -1,32 +0,0 @@ -// g++ 1.37.1 bug 900407_02 - -// g++ flags errors for attempts to assign to the "this" parameter within -// class constructors (regardless of whether or not the -traditional) -// option is used). - -// Such errors should probably not be issued when the -traditional option is -// used. - -// Special g++ Options: -Wno-deprecated -fthis-is-variable -// Special CC Options: - -// Cfront only flags errors for such usage whin the +p (pure language) -// option is used. - -// cfront 2.0 passes this test. - -// keywords: anachronism, this, assignment - -struct s0 { - - int member; - - s0 (); -}; - -s0::s0 () -{ - this = this; // OK - anachronism allowed with -traditional -} - -int main () { return 0; } |