summaryrefslogtreecommitdiff
path: root/test/Sema/arm-microsoft-intrinsics.c
blob: 0637d98d76061cd669135f8b7d068718c9444190 (plain)
1
2
3
4
5
6
7
8
9
// 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}}
}