diff options
-rw-r--r-- | llvm/test/FrontendC/vla-1.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/FrontendC/vla-1.c b/llvm/test/FrontendC/vla-1.c new file mode 100644 index 00000000000..e290349cd15 --- /dev/null +++ b/llvm/test/FrontendC/vla-1.c @@ -0,0 +1,7 @@ +// RUN: %llvmgcc -std=gnu99 %s -S |& grep {error: "is greater than the stack alignment" } + +int foo(int a) +{ + int var[a] __attribute__((__aligned__(32))); + return 4; +} |