aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/var-align.c
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2008-05-29 11:10:27 +0000
committerEli Friedman <eli.friedman@gmail.com>2008-05-29 11:10:27 +0000
commit08d7802a406ee4a7cc18e8fce0c137b8c410ea7c (patch)
tree53b6f7e402e9d46c50b46b70e7fea379a8b73ca7 /test/CodeGen/var-align.c
parent32ea35fee916ed73fe343bad2de9a609eb2cca38 (diff)
Add CodeGen support for alignment on globals, both for unusual natural
alignment and alignment attributes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51676 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/var-align.c')
-rw-r--r--test/CodeGen/var-align.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/CodeGen/var-align.c b/test/CodeGen/var-align.c
new file mode 100644
index 0000000000..be585c052e
--- /dev/null
+++ b/test/CodeGen/var-align.c
@@ -0,0 +1,4 @@
+// RUN: clang -emit-llvm %s -o - | grep "align 16" | count 2
+
+__attribute((aligned(16))) float a[128];
+union {int a[4]; __attribute((aligned(16))) float b[4];} u;