teak-llvm/clang/test/CodeGen/align-x68_64.c
Rafael Espindola 71eccb39b8 Fix alignof computation of large arrays on x86_64.
We were exposing the extra alignment given to large arrays. The new behavior
matches gcc, which is a good thing since this is a gcc extension.

Thanks to Joerg Sonnenberger for noticing it.

While at it, centralize the method description in the .h file.

llvm-svn: 187999
2013-08-08 19:53:46 +00:00

12 lines
229 B
C

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