[Darwin] Add a test to make sure clang emits __apple accelerator tables.

llvm-svn: 325928
This commit is contained in:
Davide Italiano 2018-02-23 18:04:55 +00:00
parent b39fca958d
commit 967cb19146
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
// REQUIRES: system-darwin
// Test that clang produces the __apple accelerator tables,
// e.g., __apple_types, correctly.
// RUN: %clang %s %target_itanium_abi_host_triple -O0 -c -g -o %t-ex
// RUN: llvm-objdump -section-headers %t-ex | FileCheck %s
int main (int argc, char const *argv[]) { return argc; }
// CHECK: __debug_str
// CHECK-NEXT: __debug_abbrev
// CHECK-NEXT: __debug_info
// CHECK-NEXT: __debug_ranges
// CHECK-NEXT: __debug_macinfo
// CHECK-NEXT: __apple_names
// CHECK-NEXT: __apple_objc
// CHECK-NEXT: __apple_namespac
// CHECK-NEXT: __apple_types