summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/var-align.c
diff options
context:
space:
mode:
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 0000000..b0b62ae
--- /dev/null
+++ b/test/CodeGen/var-align.c
@@ -0,0 +1,4 @@
+// RUN: clang-cc -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;
OpenPOWER on IntegriCloud