annotate debuginfo-tests/llgdb-tests/apple-accel.cpp @ 214:0cf2d4ade63d

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 13 Jul 2021 09:53:52 +0900
parents 0572611fdcc8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // REQUIRES: system-darwin
anatofuz
parents:
diff changeset
2 // Test that clang produces the __apple accelerator tables,
anatofuz
parents:
diff changeset
3 // e.g., __apple_types, correctly.
anatofuz
parents:
diff changeset
4 // These sections are going to be retired in DWARF 5, so we hardcode
anatofuz
parents:
diff changeset
5 // the DWARF version in the tests.
anatofuz
parents:
diff changeset
6 // RUN: %clang %s %target_itanium_abi_host_triple -gdwarf-2 -O0 -c -g -o %t-ex
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
7 // RUN: llvm-objdump --section-headers %t-ex | FileCheck %s
150
anatofuz
parents:
diff changeset
8 // RUN: %clang %s %target_itanium_abi_host_triple -gdwarf-4 -O0 -c -g -o %t-ex
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
9 // RUN: llvm-objdump --section-headers %t-ex | FileCheck %s
150
anatofuz
parents:
diff changeset
10
anatofuz
parents:
diff changeset
11 // A function in a different section forces the compiler to create the
anatofuz
parents:
diff changeset
12 // __debug_ranges section.
anatofuz
parents:
diff changeset
13 __attribute__((section("1,__text_foo"))) void foo() {}
anatofuz
parents:
diff changeset
14 int main (int argc, char const *argv[]) { return argc; }
anatofuz
parents:
diff changeset
15
anatofuz
parents:
diff changeset
16 // CHECK-DAG: __debug_abbrev
anatofuz
parents:
diff changeset
17 // CHECK-DAG: __debug_info
anatofuz
parents:
diff changeset
18 // CHECK-DAG: __debug_str
anatofuz
parents:
diff changeset
19 // CHECK-DAG: __debug_ranges
anatofuz
parents:
diff changeset
20 // CHECK-DAG: __apple_names
anatofuz
parents:
diff changeset
21 // CHECK-DAG: __apple_objc
anatofuz
parents:
diff changeset
22 // CHECK-DAG: __apple_namespac
anatofuz
parents:
diff changeset
23 // CHECK-DAG: __apple_types