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