diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/offset4.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/offset4.C | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/offset4.C b/gcc/testsuite/g++.old-deja/g++.jason/offset4.C new file mode 100644 index 000000000..9325cc47c --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/offset4.C @@ -0,0 +1,15 @@ +// { dg-do assemble } +// Bug: g++ complains about the use of A::p below. + +struct A { + void *p; +}; + +struct B: public A { + int f () + { + if (A::p) + return 1; + return 0; + } +}; |