diff options
author | Akira Hatanaka <ahatanaka@apple.com> | 2020-01-06 15:45:27 -0800 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@apple.com> | 2020-01-06 15:50:23 -0800 |
commit | c6fd16af2be98b49d663285e3808ecde61bec614 (patch) | |
tree | 2a38dc69954cc402cd870e3e32a767dfc3eadff8 /clang/test/CodeGenObjC | |
parent | d4c9e13324443c0324148156d54d2c7c81393327 (diff) | |
download | bcm5719-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.m | 13 |
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; |