54 lines · c
1// RUN: %clang_cc1 -triple arm64-windows -Wno-everything -Wimplicit-function-declaration -fms-compatibility -fsyntax-only -verify %s2 3// RUN: %clang_cc1 -triple arm64-linux -Wno-everything -Wimplicit-function-declaration -fsyntax-only -verify %s4 5// RUN: %clang_cc1 -triple arm64-darwin -Wno-everything -Wimplicit-function-declaration -fms-compatibility -fsyntax-only -verify %s6 7void check__dmb(void) {8 // expected-warning@+2{{call to undeclared library function}}9 // expected-note@+1{{include the header <arm_acle.h> or explicitly provide a declaration for}}10 __dmb(0);11}12 13void check__dsb(void) {14 // expected-warning@+2{{call to undeclared library function}}15 // expected-note@+1{{include the header <arm_acle.h> or explicitly provide a declaration for}}16 __dsb(0);17}18 19void check__isb(void) {20 // expected-warning@+2{{call to undeclared library function}}21 // expected-note@+1{{include the header <arm_acle.h> or explicitly provide a declaration for}}22 __isb(0);23}24 25void check__yield(void) {26 // expected-warning@+2{{call to undeclared library function}}27 // expected-note@+1{{include the header <arm_acle.h> or explicitly provide a declaration for}}28 __yield();29}30 31void check__wfe(void) {32 // expected-warning@+2{{call to undeclared library function}}33 // expected-note@+1{{include the header <arm_acle.h> or explicitly provide a declaration for}}34 __wfe();35}36 37void check__wfi(void) {38 // expected-warning@+2{{call to undeclared library function}}39 // expected-note@+1{{include the header <arm_acle.h> or explicitly provide a declaration for}}40 __wfi();41}42 43void check__sev(void) {44 // expected-warning@+2{{call to undeclared library function}}45 // expected-note@+1{{include the header <arm_acle.h> or explicitly provide a declaration for}}46 __sev();47}48 49void check__sevl(void) {50 // expected-warning@+2{{call to undeclared library function}}51 // expected-note@+1{{include the header <arm_acle.h> or explicitly provide a declaration for}}52 __sevl();53}54