blob: 79c482352f93b5b37b078dd7d4522c278fc3f3f2 (
plain) (
blame)
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;
}
|