aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/arm-former-microsoft-intrinsics-header-warning.c
blob: 8edcbbeb0375da8262fa1187987b8ee02bb842a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// RUN: %clang_cc1 -triple thumbv7-windows -fms-compatibility -Wno-everything -Wimplicit-function-declaration -fsyntax-only -verify %s
// RUN: %clang_cc1 -triple armv7-eabi -Wno-everything -Wimplicit-function-declaration -fsyntax-only -verify %s

void check__dmb(void) {
  // expected-warning@+2{{call to undeclared library function}}
  // expected-note@+1{{include the header <arm_acle.h> or explicitly provide a declaration for}}
  __dmb(0);
}

void check__dsb(void) {
  // expected-warning@+2{{call to undeclared library function}}
  // expected-note@+1{{include the header <arm_acle.h> or explicitly provide a declaration for}}
  __dsb(0);
}

void check__isb(void) {
  // expected-warning@+2{{call to undeclared library function}}
  // expected-note@+1{{include the header <arm_acle.h> or explicitly provide a declaration for}}
  __isb(0);
}

void check__yield(void) {
  // expected-warning@+2{{call to undeclared library function}}
  // expected-note@+1{{include the header <arm_acle.h> or explicitly provide a declaration for}}
  __yield();
}

void check__wfe(void) {
  // expected-warning@+2{{call to undeclared library function}}
  // expected-note@+1{{include the header <arm_acle.h> or explicitly provide a declaration for}}
  __wfe();
}

void check__wfi(void) {
  // expected-warning@+2{{call to undeclared library function}}
  // expected-note@+1{{include the header <arm_acle.h> or explicitly provide a declaration for}}
  __wfi();
}

void check__sev(void) {
  // expected-warning@+2{{call to undeclared library function}}
  // expected-note@+1{{include the header <arm_acle.h> or explicitly provide a declaration for}}
  __sev();
}

void check__sevl(void) {
  // expected-warning@+2{{call to undeclared library function}}
  // expected-note@+1{{include the header <arm_acle.h> or explicitly provide a declaration for}}
  __sevl();
}