From 1aab62762f6658a6955d9bed719a345702f2bb56 Mon Sep 17 00:00:00 2001 From: Raphael Isemann Date: Mon, 2 Sep 2019 10:55:52 +0000 Subject: [lldb][NFC] Add test for source info llvm-svn: 370638 --- .../Python/lldbsuite/test/commands/source/info/main.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 lldb/packages/Python/lldbsuite/test/commands/source/info/main.cpp (limited to 'lldb/packages/Python/lldbsuite/test/commands/source/info/main.cpp') diff --git a/lldb/packages/Python/lldbsuite/test/commands/source/info/main.cpp b/lldb/packages/Python/lldbsuite/test/commands/source/info/main.cpp new file mode 100644 index 00000000000..7d714900418 --- /dev/null +++ b/lldb/packages/Python/lldbsuite/test/commands/source/info/main.cpp @@ -0,0 +1,14 @@ +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"]) +} -- cgit v1.2.3