teak-llvm/clang/test/CodeGen/wasm-regparm.c
Dan Gohman c285307e14 [WebAssembly] Initial WebAssembly support in clang
This implements basic support for compiling (though not yet assembling
or linking) for a WebAssembly target. Note that ABI details are not yet
finalized, and may change.

Differential Revision: http://reviews.llvm.org/D12002

llvm-svn: 246814
2015-09-03 22:51:53 +00:00

5 lines
275 B
C

// 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}}