summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/builtins-arm-msvc-compat-error.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/builtins-arm-msvc-compat-error.c')
-rw-r--r--test/CodeGen/builtins-arm-msvc-compat-error.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/builtins-arm-msvc-compat-error.c b/test/CodeGen/builtins-arm-msvc-compat-error.c
new file mode 100644
index 0000000..29469de
--- /dev/null
+++ b/test/CodeGen/builtins-arm-msvc-compat-error.c
@@ -0,0 +1,6 @@
+// RUN: %clang_cc1 -triple thumbv7-windows -fms-extensions -verify %s
+
+void emit_error(unsigned int opcode) {
+ __emit(opcode); // expected-error {{argument to '__emit' must be a constant integer}}
+}
+
OpenPOWER on IntegriCloud