brintos

brintos / llvm-project-archived public Read only

0
0
Text · 365 B · 79c4823 Raw
18 lines · cpp
1// Test that lldb doesn't get confused by an overload of a virtual2// function of the same name.3struct Base {4  virtual void f(int i) {}5  virtual ~Base() {}6};7 8struct Derived : Base {9  virtual void f(int i, int j) {}10};11 12int 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