mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-19 11:35:51 -04:00

Reviewers: rnk, compnerd, mstorsjo, efriedma, TomTan, haripul, javed.absar Reviewed By: efriedma Subscribers: dmajor, kristof.beyls, chrib, cfe-commits Differential Revision: https://reviews.llvm.org/D53115 llvm-svn: 344765
16 lines
624 B
C
16 lines
624 B
C
// RUN: %clang_cc1 -triple arm64-windows -fsyntax-only -verify \
|
|
// RUN: -fms-compatibility -ffreestanding -fms-compatibility-version=17.00 %s
|
|
|
|
#include <intrin.h>
|
|
|
|
void check__getReg() {
|
|
__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}}
|
|
}
|