1int bar();
2
3int foo() {
4 return 3;
5}
6
7int 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

source code of lldb/test/API/commands/source/info/main.cpp