summaryrefslogtreecommitdiffstats
path: root/debuginfo-tests
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2018-02-23 18:04:55 +0000
committerDavide Italiano <davide@freebsd.org>2018-02-23 18:04:55 +0000
commit967cb19146d24464d2a3691761f893e72253eb8e (patch)
tree00e7d0fbe7c9f90dbac6928290c354cde0f53926 /debuginfo-tests
parentb39fca958d70c9682aaa8b87f58aa88449582cc8 (diff)
downloadbcm5719-llvm-967cb19146d24464d2a3691761f893e72253eb8e.tar.gz
bcm5719-llvm-967cb19146d24464d2a3691761f893e72253eb8e.zip
[Darwin] Add a test to make sure clang emits __apple accelerator tables.
llvm-svn: 325928
Diffstat (limited to 'debuginfo-tests')
-rw-r--r--debuginfo-tests/apple-accel.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/debuginfo-tests/apple-accel.cpp b/debuginfo-tests/apple-accel.cpp
new file mode 100644
index 00000000000..e64422119ec
--- /dev/null
+++ b/debuginfo-tests/apple-accel.cpp
@@ -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
OpenPOWER on IntegriCloud