diff options
Diffstat (limited to 'clang/test/Sema/aix-builtin-cpu-unsupports.c')
-rw-r--r-- | clang/test/Sema/aix-builtin-cpu-unsupports.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Sema/aix-builtin-cpu-unsupports.c b/clang/test/Sema/aix-builtin-cpu-unsupports.c new file mode 100644 index 0000000..10e21867 --- /dev/null +++ b/clang/test/Sema/aix-builtin-cpu-unsupports.c @@ -0,0 +1,6 @@ +// RUN: %clang_cc1 -fsyntax-only -triple powerpc-ibm-aix7.1.0.0 -verify %s + +int main(void) { + if (__builtin_cpu_is("power8")) // expected-error {{this builtin is available only on AIX 7.2 and later operating systems}} + return 1; +} |