Add a testcase for the vla and stack realignment warning.
authorEric Christopher <echristo@apple.com>
Wed, 14 Jul 2010 22:26:35 +0000 (22:26 +0000)
committerEric Christopher <echristo@apple.com>
Wed, 14 Jul 2010 22:26:35 +0000 (22:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108365 91177308-0d34-0410-b5e6-96231b3b80d8

test/FrontendC/vla-1.c [new file with mode: 0644]

diff --git a/test/FrontendC/vla-1.c b/test/FrontendC/vla-1.c
new file mode 100644 (file)
index 0000000..e290349
--- /dev/null
@@ -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;
+}