You've already forked llvm-project
mirror of
https://github.com/encounter/llvm-project.git
synced 2026-03-30 11:27:19 -07:00
690c828b0b
The isOverload() method needs to account for situations where the two methods being compared don't have the same number of arguments. rdar://problem/39542960 llvm-svn: 330450
18 lines
365 B
C++
18 lines
365 B
C++
// 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;
|
|
}
|
|
|