[clang] c6fd16a - Use FileCheck instead of grep

Akira Hatanaka via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 6 15:50:51 PST 2020


Author: Akira Hatanaka
Date: 2020-01-06T15:50:23-08:00
New Revision: c6fd16af2be98b49d663285e3808ecde61bec614

URL: https://github.com/llvm/llvm-project/commit/c6fd16af2be98b49d663285e3808ecde61bec614
DIFF: https://github.com/llvm/llvm-project/commit/c6fd16af2be98b49d663285e3808ecde61bec614.diff

LOG: Use FileCheck instead of grep

Added: 
    

Modified: 
    clang/test/CodeGenObjC/encode-test-2.m

Removed: 
    


################################################################################
diff  --git a/clang/test/CodeGenObjC/encode-test-2.m b/clang/test/CodeGenObjC/encode-test-2.m
index 9e1423755a79..2985fbda1862 100644
--- a/clang/test/CodeGenObjC/encode-test-2.m
+++ b/clang/test/CodeGenObjC/encode-test-2.m
@@ -1,9 +1,10 @@
-// RUN: %clang_cc1 -triple=i686-apple-darwin9 -emit-llvm -o %t %s
-// RUN: grep -e "@\\\22<X>\\\22" %t
-// RUN: grep -e "@\\\22<X><Y>\\\22" %t
-// RUN: grep -e "@\\\22<X><Y><Z>\\\22" %t
-// RUN: grep -e "@\\\22Foo<X><Y><Z>\\\22" %t
-// RUN: grep -e "{Intf=@@@@#}" %t  
+// RUN: %clang_cc1 -triple=i686-apple-darwin9 -emit-llvm -o - %s | FileCheck %s
+
+// CHECK: private unnamed_addr constant [7 x i8] c"@\22<X>\22\00",
+// CHECK: private unnamed_addr constant [10 x i8] c"@\22<X><Y>\22\00",
+// CHECK: private unnamed_addr constant [13 x i8] c"@\22<X><Y><Z>\22\00",
+// CHECK: private unnamed_addr constant [16 x i8] c"@\22Foo<X><Y><Z>\22\00",
+// CHECK: private unnamed_addr constant [13 x i8] c"{Intf=@@@@#}\00",
 
 @protocol X, Y, Z;
 @class Foo;


        


More information about the cfe-commits mailing list