[debuginfo-tests] r325928 - [Darwin] Add a test to make sure clang emits __apple accelerator tables.

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 23 10:04:55 PST 2018


Author: davide
Date: Fri Feb 23 10:04:55 2018
New Revision: 325928

URL: http://llvm.org/viewvc/llvm-project?rev=325928&view=rev
Log:
[Darwin] Add a test to make sure clang emits __apple accelerator tables.

Added:
    debuginfo-tests/trunk/apple-accel.cpp

Added: debuginfo-tests/trunk/apple-accel.cpp
URL: http://llvm.org/viewvc/llvm-project/debuginfo-tests/trunk/apple-accel.cpp?rev=325928&view=auto
==============================================================================
--- debuginfo-tests/trunk/apple-accel.cpp (added)
+++ debuginfo-tests/trunk/apple-accel.cpp Fri Feb 23 10:04:55 2018
@@ -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




More information about the llvm-commits mailing list