Skip to content

Commit

Permalink
[lldb/test] Fix enum-declaration-uniqueness.cpp
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
labath committed Jun 27, 2024
1 parent dade11f commit 2fefc04
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// RUN: %clangxx_host -gdwarf -c -o %t_a.o %s -DFILE_A
// RUN: %clangxx_host -gdwarf -c -o %t_b.o %s -DFILE_B
// RUN: %clangxx_host -o %t %t_a.o %t_b.o
// REQUIRES: lld
//
// RUN: %clangxx --target=x86_64-pc-linux -g -c -o %t_a.o %s -DFILE_A
// RUN: %clangxx --target=x86_64-pc-linux -g -c -o %t_b.o %s -DFILE_B
// RUN: ld.lld -o %t %t_a.o %t_b.o
// RUN: %lldb %t \
// RUN: -o "target variable my_enum my_enum_ref" -o "image dump ast" \
// RUN: -o exit | FileCheck %s
Expand All @@ -24,8 +26,6 @@ extern MyEnum my_enum;
enum MyEnum : int { MyEnum_A };

MyEnum my_enum = MyEnum_A;

int main() {}
#endif
#ifdef FILE_B
MyEnum &my_enum_ref = my_enum;
Expand Down

0 comments on commit 2fefc04

Please sign in to comment.