Test that local variables are aligned as the user requested.
authorDuncan Sands <baldrick@free.fr>
Wed, 26 Sep 2007 04:04:29 +0000 (04:04 +0000)
committerDuncan Sands <baldrick@free.fr>
Wed, 26 Sep 2007 04:04:29 +0000 (04:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42338 91177308-0d34-0410-b5e6-96231b3b80d8

test/CFrontend/2007-09-26-Alignment.c [new file with mode: 0644]

diff --git a/test/CFrontend/2007-09-26-Alignment.c b/test/CFrontend/2007-09-26-Alignment.c
new file mode 100644 (file)
index 0000000..1638fed
--- /dev/null
@@ -0,0 +1,7 @@
+// RUN: %llvmgcc -S %s -o - | grep {align 16}
+extern p(int *);
+int q(void) {
+  int x __attribute__ ((aligned (16)));
+  p(&x);
+  return x;
+}