RISC-V: fix zcmp popretz [PR113715]
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.martin / ambig1.C
blobf2a7f1e2f4bcf42e30c69076e8718e5c37afae65
1 // { dg-do assemble  }
2 //Based on a report by Bill Currie <bcurrie@tssc.co.nz>
3 struct foo {
4   protected:
5     int x;        // { dg-message "" } candidate
6 };
8 struct bar {
9   public:
10     int x();      // { dg-message "" } candidate
13 struct foobar: public foo, public bar {
14   foobar();
17 int func(int);
19 foobar::foobar()
21     func(x);       // { dg-error "" } ambiguous member access