[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / Sema / builtins-microsoft-arm64.c
blob3b5bd9b9bf86621d285f3d8ad421ae28522432ee
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__getReg(void) {
7 __getReg(-1); // expected-error-re {{argument value {{.*}} is outside the valid range}}
8 __getReg(32); // expected-error-re {{argument value {{.*}} is outside the valid range}}
11 void check_ReadWriteStatusReg(int v) {
12 int x;
13 _ReadStatusReg(x); // expected-error {{argument to '_ReadStatusReg' must be a constant integer}}
14 _WriteStatusReg(x, v); // expected-error {{argument to '_WriteStatusReg' must be a constant integer}}