From 087a8a1a1072d9917d0a533a8708a488774dc753 Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Fri, 23 Feb 2018 01:25:03 +0000 Subject: [PATCH] [Darwin] Add a test to check clang produces accelerator tables. This test was previously in lldb, and was only checking that clang was emitting the correct section. So, it belongs here and not in the debugger. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@325850 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/debug-info-section-macho.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/CodeGen/debug-info-section-macho.c diff --git a/test/CodeGen/debug-info-section-macho.c b/test/CodeGen/debug-info-section-macho.c new file mode 100644 index 0000000000..3d870d7a27 --- /dev/null +++ b/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 -- 2.50.1