]> granicus.if.org Git - clang/commitdiff
filecheckize.
authorChris Lattner <sabre@nondot.org>
Mon, 19 Dec 2011 21:11:59 +0000 (21:11 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 19 Dec 2011 21:11:59 +0000 (21:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146907 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/alignment.c

index fefd35ab634d18aa702eef1d70073f7c6603a97d..831e850f88f5c4ed77cf4f257b2a53e734b65118 100644 (file)
@@ -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