Skip to content

Commit 959fe03

Browse files
committed
[DWARF] Change a test to ensure the creation of a __debug_ranges section.
Reviewer: aprantl llvm-svn: 338424
1 parent b92d3ad commit 959fe03

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

debuginfo-tests/apple-accel.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
// RUN: %clang %s %target_itanium_abi_host_triple -gdwarf-4 -O0 -c -g -o %t-ex
99
// RUN: llvm-objdump -section-headers %t-ex | FileCheck %s
1010

11+
// A function in a different section forces the compiler to create the
12+
// __debug_ranges section.
13+
__attribute__((section("1,__text_foo"))) void foo() {}
1114
int main (int argc, char const *argv[]) { return argc; }
1215

1316
// CHECK: __debug_str

0 commit comments

Comments
 (0)