00c15f8deb
1998-05-24 Mark Mitchell <mark@markmitchell.com> * call.c (maybe_handle_implicit_object): Handle QUAL_CONVs. Make sure the type of the REF_BIND is a reference type. (maybe_handle_ref_bind, compare_ics): Rename reference_type* to ref_to_type* for clarity. From-SVN: r20037
19 lines
181 B
C
19 lines
181 B
C
extern "C" void abort();
|
|
|
|
struct S1
|
|
{
|
|
int f() { return 0; }
|
|
int f() const { return 1; }
|
|
};
|
|
|
|
struct S2 : public S1
|
|
{
|
|
};
|
|
|
|
int main()
|
|
{
|
|
S2 s2;
|
|
if (s2.f() != 0)
|
|
abort ();
|
|
}
|