llvm-for-llvmta/tools/clang/test/Sema/arm-microsoft-intrinsics.c

10 lines
453 B
C
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -triple armv7 -fms-extensions -fsyntax-only -ffreestanding -verify %s
unsigned int test_MoveFromCoprocessor(const unsigned int value) {
return _MoveFromCoprocessor(value, 1, 2, 3, 4); // expected-error-re {{argument to {{.*}} must be a constant integer}}
}
void test_MoveToCoprocessor(const unsigned int value) {
_MoveToCoprocessor(1, 2, value, 3, 4, 5); // expected-error-re {{argument to {{.*}} must be a constant integer}}
}