You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

7 lines
252 B

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