llvm-for-llvmta/tools/clang/test/CodeGen/vla-3.c

13 lines
237 B
C
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -std=gnu99 %s -emit-llvm -o - | FileCheck %s
// CHECK: alloca {{.*}}, align 16
void adr(char *);
void vlaalign(int size)
{
char __attribute__((aligned(16))) tmp[size+32];
char tmp2[size+16];
adr(tmp);
}