1a4de17562d13d7a8188108243c4cfbd52f33229aPirama Arumuga Nainar// RUN: %clang_cc1 -triple armv7 -fms-extensions -fsyntax-only -ffreestanding -verify %s
2a4de17562d13d7a8188108243c4cfbd52f33229aPirama Arumuga Nainar
3a4de17562d13d7a8188108243c4cfbd52f33229aPirama Arumuga Nainarunsigned int test_MoveFromCoprocessor(const unsigned int value) {
4a4de17562d13d7a8188108243c4cfbd52f33229aPirama Arumuga Nainar  return _MoveFromCoprocessor(value, 1, 2, 3, 4); // expected-error-re {{argument to {{.*}} must be a constant integer}}
5a4de17562d13d7a8188108243c4cfbd52f33229aPirama Arumuga Nainar}
6a4de17562d13d7a8188108243c4cfbd52f33229aPirama Arumuga Nainar
7a4de17562d13d7a8188108243c4cfbd52f33229aPirama Arumuga Nainarvoid test_MoveToCoprocessor(const unsigned int value) {
8a4de17562d13d7a8188108243c4cfbd52f33229aPirama Arumuga Nainar  _MoveToCoprocessor(1, 2, value, 3, 4, 5); // expected-error-re {{argument to {{.*}} must be a constant integer}}
9a4de17562d13d7a8188108243c4cfbd52f33229aPirama Arumuga Nainar}
10