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

14 lines
325 B
C

// RUN: %clang_cc1 -triple wasm32-unknown-unknown -emit-llvm %s -o - \
// RUN: | FileCheck %s
// RUN: %clang_cc1 -triple wasm64-unknown-unknown -emit-llvm %s -o - \
// RUN: | FileCheck %s
void test1_f(void *);
void test1_g(void) {
float x[4];
test1_f(x);
}
// CHECK: @test1_g
// CHECK: alloca [4 x float], align 16