summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo/symbolize-no-debug-str.test
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/DebugInfo/symbolize-no-debug-str.test')
-rw-r--r--llvm/test/DebugInfo/symbolize-no-debug-str.test9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/DebugInfo/symbolize-no-debug-str.test b/llvm/test/DebugInfo/symbolize-no-debug-str.test
new file mode 100644
index 00000000000..53386de3427
--- /dev/null
+++ b/llvm/test/DebugInfo/symbolize-no-debug-str.test
@@ -0,0 +1,9 @@
+RUN: llvm-objcopy -R .debug_str %p/Inputs/llvm-symbolizer-test.elf-x86-64 %t.elf
+RUN: llvm-symbolizer --functions=linkage --obj=%t.elf 0x401140 | FileCheck %s --check-prefix=LINKAGE
+RUN: llvm-symbolizer --functions=short --obj=%t.elf 0x401140 | FileCheck %s --check-prefix=SHORT
+
+LINKAGE: main
+LINKAGE-NEXT: {{^}}llvm-symbolizer-test.c:10:0
+
+SHORT: ??
+SHORT-NEXT: {{^}}llvm-symbolizer-test.c:10:0
OpenPOWER on IntegriCloud