reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
// Test that lldb doesn't get confused by an overload of a virtual
// function of the same name.
struct Base {
  virtual void f(int i) {}
  virtual ~Base() {}
};

struct Derived : Base {
  virtual void f(int i, int j) {}
};

int main(int argc, char **argv) {
  Derived obj;
  obj.f(1, 2); //% self.expect("fr var", "not crashing", substrs = ["obj"])
  return 0;
}