xref: /llvm-project/lldb/test/API/lang/cpp/virtual-overload/main.cpp (revision 99451b4453688a94c6014cac233d371ab4cc342d)
1 // Test that lldb doesn't get confused by an overload of a virtual
2 // function of the same name.
3 struct Base {
fBase4   virtual void f(int i) {}
~BaseBase5   virtual ~Base() {}
6 };
7 
8 struct Derived : Base {
fDerived9   virtual void f(int i, int j) {}
10 };
11 
main(int argc,char ** argv)12 int main(int argc, char **argv) {
13   Derived obj;
14   obj.f(1, 2); //% self.expect("fr var", "not crashing", substrs = ["obj"])
15   return 0;
16 }
17 
18