Skip to content

Commit 6ed3c7d

Browse files
committed
explicitly use ld.lld in test.
1 parent 88aac97 commit 6ed3c7d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lldb/test/Shell/SymbolFile/DWARF/x86/simplified-template-names.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44
// REQUIRES: lld
55

66
// Test against logging to see if we print the fully qualified names correctly.
7-
// RUN: %clangxx --target=x86_64-pc-linux -g -gsimple-template-names %s -o %t
8-
// RUN: %lldb %t -o "log enable dwarf comp" -o "target variable v3" -o exit | FileCheck %s --check-prefix=LOG
7+
// RUN: %clangxx --target=x86_64-pc-linux -g -gsimple-template-names %s -c -o %t1.o
8+
// RUN: ld.lld %t1.o -o %t1
9+
// RUN: %lldb %t1 -o "log enable dwarf comp" -o "target variable v3" -o exit | FileCheck %s --check-prefix=LOG
910

1011
// Test that we following DW_AT_signature correctly. If not, lldb might confuse the types of v1 and v2.
11-
// RUN: %clangxx --target=x86_64-pc-linux -g -gsimple-template-names -fdebug-types-section %s -o %t
12-
// RUN: %lldb %t -o "target variable v1 v2" -o exit | FileCheck %s --check-prefix=TYPE
12+
// RUN: %clangxx --target=x86_64-pc-linux -g -gsimple-template-names -fdebug-types-section %s -c -o %t2.o
13+
// RUN: ld.lld %t2.o -o %t2
14+
// RUN: %lldb %t2 -o "target variable v1 v2" -o exit | FileCheck %s --check-prefix=TYPE
1315

1416
// LOG: unique name: t3<t2<int> >::t4
1517

@@ -32,5 +34,3 @@ template <typename> struct t3 {
3234
struct t4 {};
3335
};
3436
t3<t2<int>>::t4 v3;
35-
36-
int main() {}

0 commit comments

Comments
 (0)