diff options
author | Wolfgang Pieb <Wolfgang.Pieb@sony.com> | 2018-07-31 19:37:29 +0000 |
---|---|---|
committer | Wolfgang Pieb <Wolfgang.Pieb@sony.com> | 2018-07-31 19:37:29 +0000 |
commit | 9c1832872251c96c91b49df0e4e8a6d1dcb2a3f9 (patch) | |
tree | 644989927ca527c8597c9fa2ebab1546b47f2bc2 /debuginfo-tests | |
parent | adcab3ce4dfd8a7090387884acb77078243a9374 (diff) |
[DWARF] Change a test to ensure the creation of a __debug_ranges section.
Reviewer: aprantl
Diffstat (limited to 'debuginfo-tests')
-rw-r--r-- | debuginfo-tests/apple-accel.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/debuginfo-tests/apple-accel.cpp b/debuginfo-tests/apple-accel.cpp index 9c5e08e40d1..4a73afe8011 100644 --- a/debuginfo-tests/apple-accel.cpp +++ b/debuginfo-tests/apple-accel.cpp @@ -8,6 +8,9 @@ // 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 +// A function in a different section forces the compiler to create the +// __debug_ranges section. +__attribute__((section("1,__text_foo"))) void foo() {} int main (int argc, char const *argv[]) { return argc; } // CHECK: __debug_str |