summaryrefslogtreecommitdiffstats
path: root/lldb/lit/SymbolFile
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2018-06-07 10:56:16 +0000
committerPavel Labath <labath@google.com>2018-06-07 10:56:16 +0000
commit6675e652a35c9a28160dfe8577d3d88ca8ed4686 (patch)
treee8e090a4b56dbf04c50260b13faa7a01e727fd7b /lldb/lit/SymbolFile
parent452bd87cc478f4d017c5c11bb409287335f40f30 (diff)
downloadbcm5719-llvm-6675e652a35c9a28160dfe8577d3d88ca8ed4686.tar.gz
bcm5719-llvm-6675e652a35c9a28160dfe8577d3d88ca8ed4686.zip
DebugNamesDWARFIndex: add namespace lookup support
llvm-svn: 334186
Diffstat (limited to 'lldb/lit/SymbolFile')
-rw-r--r--lldb/lit/SymbolFile/DWARF/find-basic-namespace.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/lldb/lit/SymbolFile/DWARF/find-basic-namespace.cpp b/lldb/lit/SymbolFile/DWARF/find-basic-namespace.cpp
index 92485dddd48..511b7196f80 100644
--- a/lldb/lit/SymbolFile/DWARF/find-basic-namespace.cpp
+++ b/lldb/lit/SymbolFile/DWARF/find-basic-namespace.cpp
@@ -17,6 +17,16 @@
// RUN: lldb-test symbols --name=not_there --find=namespace %t | \
// RUN: FileCheck --check-prefix=EMPTY %s
+// RUN: clang %s -g -c -emit-llvm -o - --target=x86_64-pc-linux | \
+// RUN: llc -accel-tables=Dwarf -filetype=obj -o %t.o
+// RUN: ld.lld %t.o -o %t
+// RUN: lldb-test symbols --name=foo --find=namespace %t | \
+// RUN: FileCheck --check-prefix=FOO %s
+// RUN: lldb-test symbols --name=foo --find=namespace --context=context %t | \
+// RUN: FileCheck --check-prefix=CONTEXT %s
+// RUN: lldb-test symbols --name=not_there --find=namespace %t | \
+// RUN: FileCheck --check-prefix=EMPTY %s
+
// FOO: Found namespace: foo
// CONTEXT: Found namespace: bar::foo
OpenPOWER on IntegriCloud