brintos

brintos / llvm-project-archived public Read only

0
0
Text · 941 B · 2705c29 Raw
24 lines · cpp
1// REQUIRES: system-darwin2// Test that clang produces the __apple accelerator tables,3// e.g., __apple_types, correctly.4// These sections are going to be retired in DWARF 5, so we hardcode5// the DWARF version in the tests.6// RUN: %clang %s %target_itanium_abi_host_triple -gdwarf-2 -O0 -c -g -o %t-ex7// RUN: llvm-objdump --section-headers %t-ex | FileCheck %s8// RUN: %clang %s %target_itanium_abi_host_triple -gdwarf-4 -O0 -c -g -o %t-ex9// RUN: llvm-objdump --section-headers %t-ex | FileCheck %s10 11// A function in a different section forces the compiler to create the12// __debug_ranges section.13__attribute__((section("1,__text_foo"))) void foo() {}14int main (int argc, char const *argv[]) { return argc; }15 16// CHECK-DAG: __debug_abbrev17// CHECK-DAG: __debug_info18// CHECK-DAG: __debug_str19// CHECK-DAG: __debug_ranges20// CHECK-DAG: __apple_names21// CHECK-DAG: __apple_objc22// CHECK-DAG: __apple_namespac23// CHECK-DAG: __apple_types24