blob: 9c5e08e40d10214e78bcf54686b305304f79e337 [file] [log] [blame]
Davide Italiano967cb192018-02-23 18:04:55 +00001// REQUIRES: system-darwin
2// Test that clang produces the __apple accelerator tables,
3// e.g., __apple_types, correctly.
Davide Italiano58c707d2018-02-26 20:56:45 +00004// These sections are going to be retired in DWARF 5, so we hardcode
5// the DWARF version in the tests.
6// RUN: %clang %s %target_itanium_abi_host_triple -gdwarf-2 -O0 -c -g -o %t-ex
7// RUN: llvm-objdump -section-headers %t-ex | FileCheck %s
8// RUN: %clang %s %target_itanium_abi_host_triple -gdwarf-4 -O0 -c -g -o %t-ex
Davide Italiano967cb192018-02-23 18:04:55 +00009// RUN: llvm-objdump -section-headers %t-ex | FileCheck %s
10
11int main (int argc, char const *argv[]) { return argc; }
12
13// CHECK: __debug_str
14// CHECK-NEXT: __debug_abbrev
15// CHECK-NEXT: __debug_info
16// CHECK-NEXT: __debug_ranges
17// CHECK-NEXT: __debug_macinfo
18// CHECK-NEXT: __apple_names
19// CHECK-NEXT: __apple_objc
20// CHECK-NEXT: __apple_namespac
21// CHECK-NEXT: __apple_types