aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/emscripten-regparm.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/emscripten-regparm.c')
-rw-r--r--test/CodeGen/emscripten-regparm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/CodeGen/emscripten-regparm.c b/test/CodeGen/emscripten-regparm.c
new file mode 100644
index 0000000000..20ffc9dec0
--- /dev/null
+++ b/test/CodeGen/emscripten-regparm.c
@@ -0,0 +1,4 @@
+// RUN: %clang_cc1 -triple asmjs-unknown-emscripten %s -fsyntax-only -verify
+
+void __attribute__((regparm(2))) fc_f1(int i, int j, int k) {} // expected-error{{'regparm' is not valid on this platform}}
+