Skip to content

Commit 2fefc04

Browse files
committed
[lldb/test] Fix enum-declaration-uniqueness.cpp
Dereferencing a pointer variable without a running process does not work on every arch/os. Fix the test to x86-linux, where it is known to work.
1 parent dade11f commit 2fefc04

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lldb/test/Shell/SymbolFile/DWARF/enum-declaration-uniqueness.cpp renamed to lldb/test/Shell/SymbolFile/DWARF/x86/enum-declaration-uniqueness.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
// RUN: %clangxx_host -gdwarf -c -o %t_a.o %s -DFILE_A
2-
// RUN: %clangxx_host -gdwarf -c -o %t_b.o %s -DFILE_B
3-
// RUN: %clangxx_host -o %t %t_a.o %t_b.o
1+
// REQUIRES: lld
2+
//
3+
// RUN: %clangxx --target=x86_64-pc-linux -g -c -o %t_a.o %s -DFILE_A
4+
// RUN: %clangxx --target=x86_64-pc-linux -g -c -o %t_b.o %s -DFILE_B
5+
// RUN: ld.lld -o %t %t_a.o %t_b.o
46
// RUN: %lldb %t \
57
// RUN: -o "target variable my_enum my_enum_ref" -o "image dump ast" \
68
// RUN: -o exit | FileCheck %s
@@ -24,8 +26,6 @@ extern MyEnum my_enum;
2426
enum MyEnum : int { MyEnum_A };
2527

2628
MyEnum my_enum = MyEnum_A;
27-
28-
int main() {}
2929
#endif
3030
#ifdef FILE_B
3131
MyEnum &my_enum_ref = my_enum;

0 commit comments

Comments
 (0)