diff options
Diffstat (limited to 'test/CodeGen/vla-3.c')
-rw-r--r-- | test/CodeGen/vla-3.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/vla-3.c b/test/CodeGen/vla-3.c new file mode 100644 index 000000000000..4927b464231f --- /dev/null +++ b/test/CodeGen/vla-3.c @@ -0,0 +1,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); +} |