diff options
Diffstat (limited to 'debuginfo-tests/apple-accel.cpp')
-rw-r--r-- | debuginfo-tests/apple-accel.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/debuginfo-tests/apple-accel.cpp b/debuginfo-tests/apple-accel.cpp index e64422119ec..9c5e08e40d1 100644 --- a/debuginfo-tests/apple-accel.cpp +++ b/debuginfo-tests/apple-accel.cpp @@ -1,7 +1,11 @@ // REQUIRES: system-darwin // Test that clang produces the __apple accelerator tables, // e.g., __apple_types, correctly. -// RUN: %clang %s %target_itanium_abi_host_triple -O0 -c -g -o %t-ex +// These sections are going to be retired in DWARF 5, so we hardcode +// the DWARF version in the tests. +// RUN: %clang %s %target_itanium_abi_host_triple -gdwarf-2 -O0 -c -g -o %t-ex +// RUN: llvm-objdump -section-headers %t-ex | FileCheck %s +// RUN: %clang %s %target_itanium_abi_host_triple -gdwarf-4 -O0 -c -g -o %t-ex // RUN: llvm-objdump -section-headers %t-ex | FileCheck %s int main (int argc, char const *argv[]) { return argc; } |