summaryrefslogtreecommitdiffstats
path: root/test/Frontend/darwin-eabi.c
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2013-10-24 10:48:50 +0000
committerTim Northover <tnorthover@apple.com>2013-10-24 10:48:50 +0000
commit66b5dac8b70229dfe7c7cc882de21b1265a6cdea (patch)
tree22c688f68fb02078f6528de71c982e3e8a235c7e /test/Frontend/darwin-eabi.c
parent3c6aea7ac63265c769b5fe09e213ab1c4cee111e (diff)
ARM-Darwin: Use the *-*-darwin-eabi triple for v6m & v7m archs
These arch arguments are used for embedded targets (obviously) which need a different calling convention to iOS. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193328 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Frontend/darwin-eabi.c')
-rw-r--r--test/Frontend/darwin-eabi.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Frontend/darwin-eabi.c b/test/Frontend/darwin-eabi.c
new file mode 100644
index 0000000000..dc0504bd3c
--- /dev/null
+++ b/test/Frontend/darwin-eabi.c
@@ -0,0 +1,6 @@
+// RUN: %clang -target x86_64-apple-darwin -arch armv6m -dM -E %s | FileCheck %s
+// RUN: %clang -target x86_64-apple-darwin -arch armv7m -dM -E %s | FileCheck %s
+// RUN: %clang -target x86_64-apple-darwin -arch armv7em -dM -E %s | FileCheck %s
+
+// CHECK-NOT: __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__
+// CHECK-NOT: __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__