Mercurial > hg > CbC > CbC_llvm
view clang/test/Sema/builtins-microsoft-arm64.c @ 236:c4bab56944e8 llvm-original
LLVM 16
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:45:10 +0900 |
parents | 1d019706d866 |
children |
line wrap: on
line source
// RUN: %clang_cc1 -triple arm64-windows -fsyntax-only -verify \ // RUN: -fms-compatibility -ffreestanding -fms-compatibility-version=17.00 %s #include <intrin.h> void check__break(int x) { __break(-1); // expected-error-re {{argument value {{.*}} is outside the valid range}} __break(65536); // expected-error-re {{argument value {{.*}} is outside the valid range}} __break(x); // expected-error {{argument to '__break' must be a constant integer}} } void check__getReg(void) { __getReg(-1); // expected-error-re {{argument value {{.*}} is outside the valid range}} __getReg(32); // expected-error-re {{argument value {{.*}} is outside the valid range}} } void check_ReadWriteStatusReg(int v) { int x; _ReadStatusReg(x); // expected-error {{argument to '_ReadStatusReg' must be a constant integer}} _WriteStatusReg(x, v); // expected-error {{argument to '_WriteStatusReg' must be a constant integer}} }