diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/pmem3.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/pmem3.C | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/pmem3.C b/gcc/testsuite/g++.old-deja/g++.jason/pmem3.C index 343953b9604..fca7aa3a92f 100644 --- a/gcc/testsuite/g++.old-deja/g++.jason/pmem3.C +++ b/gcc/testsuite/g++.old-deja/g++.jason/pmem3.C @@ -1,11 +1 @@ -// Test that comparison of pointers to members does not complain about -// contravariance violation. - -struct A { int i; }; -struct B : public A { int j; int f (); }; -main () -{ - int A::*apm = &A::i; - int B::*bpm = apm; - return apm != bpm; -} +int main () |