llvm-project/clang/test/Sema/check-aux-builtins.c

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
252 B
C
Raw Normal View History

// RUN: %clang_cc1 -fopenmp -fopenmp-is-device -triple aarch64 -aux-triple x86_64-linux-pc -fsyntax-only -verify %s
void func(void) {
(void)__builtin_cpu_is("atom");
__builtin_cpu_is("INVALID"); // expected-error{{invalid cpu name for builtin}}
}