diff options
-rw-r--r-- | clang/test/CodeGen/debug-info-section-macho.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/clang/test/CodeGen/debug-info-section-macho.c b/clang/test/CodeGen/debug-info-section-macho.c new file mode 100644 index 00000000000..3d870d7a275 --- /dev/null +++ b/clang/test/CodeGen/debug-info-section-macho.c @@ -0,0 +1,16 @@ +// Test that clang produces the __apple accelerator tables, +// e.g., __apple_types, correctly. +// RUN: %clang %s -target x86_64-apple-macosx10.13.0 -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 |