New test case

From-SVN: r22501
This commit is contained in:
Martin v. Löwis 1998-09-20 12:13:07 +00:00
parent 27c7a08d68
commit 3add584574

View File

@ -0,0 +1,22 @@
//Build don't link:
//Based on a report by Bill Currie <bcurrie@tssc.co.nz>
struct foo {
protected:
int x;
};
struct bar {
public:
int x();
};
struct foobar: public foo, public bar {
foobar();
};
int func(int);
foobar::foobar()
{
func(x); // ERROR - ambiguous member access
}