diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.law/operators19.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.law/operators19.C | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.law/operators19.C b/gcc/testsuite/g++.old-deja/g++.law/operators19.C new file mode 100644 index 00000000000..37560411151 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.law/operators19.C @@ -0,0 +1,19 @@ +// Build don't link: +// GROUPS passed operators +// opr-ampr file +// From: Jarkko Sonninen <Jarkko.Sonninen@lut.fi> +// Date: Thu, 7 Oct 1993 08:25:26 +0200 +// Subject: type of base class member +// Message-ID: <199310070625.AA18653@kaisa.it.lut.fi> + +class A { + public: + int j; +}; + +class B: public A { + public: + B () { + !(A::j); + }; +}; |