summaryrefslogtreecommitdiff
path: root/test/Preprocessor/is_target_arm64.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Preprocessor/is_target_arm64.c')
-rw-r--r--test/Preprocessor/is_target_arm64.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Preprocessor/is_target_arm64.c b/test/Preprocessor/is_target_arm64.c
new file mode 100644
index 000000000000..87ebe94d18e3
--- /dev/null
+++ b/test/Preprocessor/is_target_arm64.c
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 -fsyntax-only -triple arm64-apple-ios11 -verify %s
+// expected-no-diagnostics
+
+#if !__is_target_arch(arm64) || !__is_target_arch(aarch64)
+ #error "mismatching arch"
+#endif
+
+#if __is_target_arch(aarch64_be)
+ #error "mismatching arch"
+#endif