summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/alignment.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/alignment.c')
-rw-r--r--clang/test/CodeGen/alignment.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/clang/test/CodeGen/alignment.c b/clang/test/CodeGen/alignment.c
index fefd35ab634..831e850f88f 100644
--- a/clang/test/CodeGen/alignment.c
+++ b/clang/test/CodeGen/alignment.c
@@ -1,4 +1,7 @@
-// RUN: %clang_cc1 -emit-llvm %s -o - | grep "align 16" | count 2
+// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
__attribute((aligned(16))) float a[128];
-union {int a[4]; __attribute((aligned(16))) float b[4];} u;
+union {int a[4]; __attribute((aligned(16))) float b[4];} b;
+
+// CHECK: @a = {{.*}}zeroinitializer, align 16
+// CHECK: @b = {{.*}}zeroinitializer, align 16
OpenPOWER on IntegriCloud