From: Manman Ren Date: Wed, 21 Aug 2013 20:53:05 +0000 (+0000) Subject: Update testing case to use FileCheck instead of grep. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a206493b6c3808c26e94a72371aec73c1d8dfe75;p=clang Update testing case to use FileCheck instead of grep. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188929 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/bitfield.c b/test/CodeGen/bitfield.c index dea5e43e0f..03748a067b 100644 --- a/test/CodeGen/bitfield.c +++ b/test/CodeGen/bitfield.c @@ -1,6 +1,4 @@ -// RUN: %clang_cc1 -triple i386-unknown-unknown %s -emit-llvm -o %t -O3 -// RUN: grep "ret i32" %t | count 4 -// RUN: grep "ret i32 1" %t | count 4 +// RUN: %clang_cc1 -triple i386-unknown-unknown %s -emit-llvm -o - -O3 | FileCheck %s static int f0(int n) { struct s0 { @@ -17,6 +15,8 @@ static int f0(int n) { } int g0(void) { +// CHECK-LABEL: @g0() +// CHECK: ret i32 1 return f0(-1) + 44335655; } @@ -35,6 +35,8 @@ static int f1(void) { } int g1(void) { +// CHECK-LABEL: @g1() +// CHECK: ret i32 1 return f1() + 16; } @@ -51,6 +53,8 @@ static int f2(void) { } int g2(void) { +// CHECK-LABEL: @g2() +// CHECK: ret i32 1 return f2() - 9; } @@ -70,5 +74,7 @@ static int f3(int n) { } int g3(void) { +// CHECK-LABEL: @g3() +// CHECK: ret i32 1 return f3(20) + 130725747; }