teak-llvm/clang/test/Preprocessor/is_target_arm64.c
Alex Lorenz 268759e58f __is_target_arch: Check the arch and subarch instead of the arch name
This ensures that when compiling for "arm64" __is_target_arch will succeed for
both "arm64" and "aarch64".

Thanks to Bob Wilson who pointed this out!

llvm-svn: 320853
2017-12-15 19:58:38 +00:00

11 lines
261 B
C

// 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