diffblue-cbmc/regression/cpp-from-CVS/Overloading_Functions2/main.cpp

18 lines
153 B
C++

struct A {
};
struct B: A {
};
struct C: B {
};
bool f1(A&) {return true;}
bool f1(B&) {return false;}
int main()
{
C c;
assert(f1(c)==false);
}