diff options
Diffstat (limited to 'test/CodeGen/wasm-regparm.c')
-rw-r--r-- | test/CodeGen/wasm-regparm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/CodeGen/wasm-regparm.c b/test/CodeGen/wasm-regparm.c new file mode 100644 index 0000000..66037d9 --- /dev/null +++ b/test/CodeGen/wasm-regparm.c @@ -0,0 +1,4 @@ +// RUN: %clang_cc1 -triple wasm32-unknown-unknown %s -fsyntax-only -verify +// RUN: %clang_cc1 -triple wasm64-unknown-unknown %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}} |