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