diff options
Diffstat (limited to 'test/FrontendC/vla-1.c')
-rw-r--r-- | test/FrontendC/vla-1.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/FrontendC/vla-1.c b/test/FrontendC/vla-1.c new file mode 100644 index 0000000..76f6c53 --- /dev/null +++ b/test/FrontendC/vla-1.c @@ -0,0 +1,8 @@ +// RUN: true +// %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; +} |