Bump version to 19.1.3
[llvm-project.git] / clang / test / Preprocessor / has_builtin_cpuid.c
blob35ef65ecdd9b9078adac510b8dfd3e94823a646a
1 // RUN: %clang_cc1 -fsyntax-only -triple arm64-- -DARM -verify %s
2 // RUN: %clang_cc1 -fsyntax-only -triple x86_64-- -DX86 -verify %s
3 // RUN: %clang_cc1 -fsyntax-only -triple powerpc64-unknown-linux-gnu -DPPC \
4 // RUN: -verify %s
5 // expected-no-diagnostics
6 #if __has_builtin(__builtin_cpu_is)
7 # ifdef ARM
8 # error "ARM shouldn't have __builtin_cpu_is"
9 # endif
10 #endif
11 #if __has_builtin(__builtin_cpu_init)
12 # if defined(ARM) || defined(PPC)
13 # error "ARM/PPC shouldn't have __builtin_cpu_init"
14 # endif
15 #endif