xref: /llvm-project/lldb/test/API/commands/source/info/main.cpp (revision 99451b4453688a94c6014cac233d371ab4cc342d)
1 int bar();
2 
foo()3 int foo() {
4   return 3;
5 }
6 
main()7 int main() {
8   int f = foo() + bar();
9   f++;
10   return f; //%self.expect("source info", substrs=["Lines found in module ", "main.cpp:10"])
11   //%self.expect("source info -f main.cpp -c 10", matching=True, substrs=["main.cpp:10"])
12   //%self.expect("source info -f main.cpp -c 1", matching=False, substrs=["main.cpp:10"])
13   //%self.expect("source info -f main.cpp -l 10", matching=False, substrs=["main.cpp:7"])
14 }
15