blob: fae26c348246d0a34c1bf3bcc999146511a88951 [file] [log] [blame]
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 ();
}