Skip to content

Commit

Permalink
[DWARF] Change a test to ensure the creation of a __debug_ranges sect…
Browse files Browse the repository at this point in the history
…ion.

Reviewer: aprantl
llvm-svn: 338424
  • Loading branch information
wolfy1961 committed Jul 31, 2018
1 parent b92d3ad commit 959fe03
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions debuginfo-tests/apple-accel.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 959fe03

Please sign in to comment.