summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenObjC
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@apple.com>2020-01-06 15:45:27 -0800
committerAkira Hatanaka <ahatanaka@apple.com>2020-01-06 15:50:23 -0800
commitc6fd16af2be98b49d663285e3808ecde61bec614 (patch)
tree2a38dc69954cc402cd870e3e32a767dfc3eadff8 /clang/test/CodeGenObjC
parentd4c9e13324443c0324148156d54d2c7c81393327 (diff)
downloadbcm5719-llvm-c6fd16af2be98b49d663285e3808ecde61bec614.tar.gz
bcm5719-llvm-c6fd16af2be98b49d663285e3808ecde61bec614.zip
Use FileCheck instead of grep
Diffstat (limited to 'clang/test/CodeGenObjC')
-rw-r--r--clang/test/CodeGenObjC/encode-test-2.m13
1 files changed, 7 insertions, 6 deletions
diff --git a/clang/test/CodeGenObjC/encode-test-2.m b/clang/test/CodeGenObjC/encode-test-2.m
index 9e1423755a7..2985fbda186 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;
OpenPOWER on IntegriCloud