teak-llvm/lldb/packages/Python/lldbsuite/test/commands/source/info/main.cpp
Raphael Isemann 1aab62762f [lldb][NFC] Add test for source info
llvm-svn: 370638
2019-09-02 10:55:52 +00:00

15 lines
449 B
C++

int bar();
int foo() {
return 3;
}
int main() {
int f = foo() + bar();
f++;
return f; //%self.expect("source info", substrs=["Lines found in module ", "main.cpp:10"])
//%self.expect("source info -f main.cpp -c 10", matching=True, substrs=["main.cpp:10"])
//%self.expect("source info -f main.cpp -c 1", matching=False, substrs=["main.cpp:10"])
//%self.expect("source info -f main.cpp -l 10", matching=False, substrs=["main.cpp:7"])
}