xref: /llvm-project/clang/test/CodeGen/align-wasm.c (revision c285307e1457c4db2346443a4336e672d7487111)
1*c285307eSDan Gohman // RUN: %clang_cc1 -triple wasm32-unknown-unknown -emit-llvm %s -o - \
2*c285307eSDan Gohman // RUN:   | FileCheck %s
3*c285307eSDan Gohman // RUN: %clang_cc1 -triple wasm64-unknown-unknown -emit-llvm %s -o - \
4*c285307eSDan Gohman // RUN:   | FileCheck %s
5*c285307eSDan Gohman 
6*c285307eSDan Gohman void test1_f(void *);
7*c285307eSDan Gohman 
test1_g(void)8*c285307eSDan Gohman void test1_g(void) {
9*c285307eSDan Gohman   float x[4];
10*c285307eSDan Gohman   test1_f(x);
11*c285307eSDan Gohman }
12*c285307eSDan Gohman // CHECK: @test1_g
13*c285307eSDan Gohman // CHECK: alloca [4 x float], align 16
14