[cfe-commits] r89514 - /cfe/trunk/test/CodeGen/flexible-array-init.c
Daniel Dunbar
daniel at zuster.org
Fri Nov 20 15:46:56 PST 2009
Author: ddunbar
Date: Fri Nov 20 17:46:56 2009
New Revision: 89514
URL: http://llvm.org/viewvc/llvm-project?rev=89514&view=rev
Log:
Convert test to FileCheck.
Modified:
cfe/trunk/test/CodeGen/flexible-array-init.c
Modified: cfe/trunk/test/CodeGen/flexible-array-init.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/flexible-array-init.c?rev=89514&r1=89513&r2=89514&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/flexible-array-init.c (original)
+++ cfe/trunk/test/CodeGen/flexible-array-init.c Fri Nov 20 17:46:56 2009
@@ -1,8 +1,7 @@
-// RUN: clang-cc -triple i386-unknown-unknown -emit-llvm -o - %s | grep 7 | count 1
-// RUN: clang-cc -triple i386-unknown-unknown -emit-llvm -o - %s | grep 11 | count 1
-// RUN: clang-cc -triple i386-unknown-unknown -emit-llvm -o - %s | grep 13 | count 1
-// RUN: clang-cc -triple i386-unknown-unknown -emit-llvm -o - %s | grep 15 | count 1
+// RUN: clang-cc -triple i386-unknown-unknown -emit-llvm -o - %s | FileCheck %s
struct { int x; int y[]; } a = { 1, 7, 11 };
+// CHECK: @a = global %0 { i32 1, [2 x i32] [i32 7, i32 11] }
struct { int x; int y[]; } b = { 1, { 13, 15 } };
+// CHECK: @b = global %0 { i32 1, [2 x i32] [i32 13, i32 15] }
More information about the cfe-commits
mailing list