brintos

brintos / llvm-project-archived public Read only

0
0
Text · 449 B · 7d71490 Raw
15 lines · cpp
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