[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Sema / builtins-microsoft-arm64.c
blob6d0dc09c9ed83f813d11e7b1085635a4536de0d0
1 // RUN: %clang_cc1 -triple arm64-windows -fsyntax-only -verify \
2 // RUN: -fms-compatibility -ffreestanding -fms-compatibility-version=17.00 %s
4 #include <intrin.h>
6 void check__break(int x) {
7 __break(-1); // expected-error-re {{argument value {{.*}} is outside the valid range}}
8 __break(65536); // expected-error-re {{argument value {{.*}} is outside the valid range}}
9 __break(x); // expected-error {{argument to '__break' must be a constant integer}}
12 void check__getReg(void) {
13 __getReg(-1); // expected-error-re {{argument value {{.*}} is outside the valid range}}
14 __getReg(32); // expected-error-re {{argument value {{.*}} is outside the valid range}}
17 void check_ReadWriteStatusReg(int v) {
18 int x;
19 _ReadStatusReg(x); // expected-error {{argument to '_ReadStatusReg' must be a constant integer}}
20 _WriteStatusReg(x, v); // expected-error {{argument to '_WriteStatusReg' must be a constant integer}}