summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/vla-3.c
blob: 4927b464231f61dc2c7c3a95563c5965e9cee924 (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %clang_cc1 -std=gnu99 %s -emit-llvm -o - | grep ".*alloca.*align 16"

void adr(char *);

void vlaalign(int size)
{
    char __attribute__((aligned(16))) tmp[size+32];
    char tmp2[size+16];

    adr(tmp);
}