From 87aa9c9e4d41ed881453e2fab85b3d25f648bb55 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Wed, 9 Oct 2019 19:22:02 +0000 Subject: Re-land "[test] Split LLDB tests into API, Shell & Unit" The original patch got reverted because it broke `check-lldb` on a clean build. This fixes that. llvm-svn: 374201 --- lldb/test/Shell/SymbolFile/PDB/function-nested-block.test | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lldb/test/Shell/SymbolFile/PDB/function-nested-block.test (limited to 'lldb/test/Shell/SymbolFile/PDB/function-nested-block.test') diff --git a/lldb/test/Shell/SymbolFile/PDB/function-nested-block.test b/lldb/test/Shell/SymbolFile/PDB/function-nested-block.test new file mode 100644 index 00000000000..9057d01c258 --- /dev/null +++ b/lldb/test/Shell/SymbolFile/PDB/function-nested-block.test @@ -0,0 +1,11 @@ +REQUIRES: system-windows, lld +RUN: %build --compiler=clang-cl --nodefaultlib --output=%t.exe %S/Inputs/FunctionNestedBlockTest.cpp +RUN: lldb-test symbols -find=function -file FunctionNestedBlockTest.cpp -line 4 %t.exe | FileCheck --check-prefix=CHECK-FUNCTION %s +RUN: lldb-test symbols -find=block -file FunctionNestedBlockTest.cpp -line 4 %t.exe | FileCheck --check-prefix=CHECK-BLOCK %s + +CHECK-FUNCTION: Found 1 functions: +CHECK-FUNCTION: name = "{{.*}}", mangled = "{{_?}}main" + +CHECK-BLOCK: Found 1 blocks: +CHECK-BLOCK: Blocks: id = {{.*}}, range = {{.*}} +CHECK-BLOCK: id = {{.*}}, range = {{.*}} -- cgit v1.2.3