diff options
Diffstat (limited to 'lldb/test/Shell/SymbolFile/PDB/function-nested-block.test')
-rw-r--r-- | lldb/test/Shell/SymbolFile/PDB/function-nested-block.test | 11 |
1 files changed, 11 insertions, 0 deletions
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 = {{.*}} |