aboutsummaryrefslogtreecommitdiffstats
path: root/test/CFrontend
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2007-09-26 04:04:29 +0000
committerDuncan Sands <baldrick@free.fr>2007-09-26 04:04:29 +0000
commitca9976d6fea556430cdb1dd92dc69f0fc257ea96 (patch)
tree29bd9eed2332c8c996edbd276044fc86576d0e1a /test/CFrontend
parent2f245ba57290140b5b9689495b1583a76d62c24e (diff)
downloadexternal_llvm-ca9976d6fea556430cdb1dd92dc69f0fc257ea96.zip
external_llvm-ca9976d6fea556430cdb1dd92dc69f0fc257ea96.tar.gz
external_llvm-ca9976d6fea556430cdb1dd92dc69f0fc257ea96.tar.bz2
Test that local variables are aligned as the user requested.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42338 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CFrontend')
-rw-r--r--test/CFrontend/2007-09-26-Alignment.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CFrontend/2007-09-26-Alignment.c b/test/CFrontend/2007-09-26-Alignment.c
new file mode 100644
index 0000000..1638fed
--- /dev/null
+++ b/test/CFrontend/2007-09-26-Alignment.c
@@ -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;
+}