summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/enum.c
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2015-01-24 17:39:36 +0000
committerJustin Bogner <mail@justinbogner.com>2015-01-24 17:39:36 +0000
commit9fa8c9984c78dccf82cbfda8d261f0c43f9018c5 (patch)
tree4a2624688333023d5357508ace15f66fedc38f78 /clang/test/CodeGen/enum.c
parent2af264a44a59ad5725338bc9f889d1c84c275be7 (diff)
downloadbcm5719-llvm-9fa8c9984c78dccf82cbfda8d261f0c43f9018c5.tar.gz
bcm5719-llvm-9fa8c9984c78dccf82cbfda8d261f0c43f9018c5.zip
test: Convert some tests to FileCheck
These were all doing trivial greps. It's better to use FileCheck. llvm-svn: 227007
Diffstat (limited to 'clang/test/CodeGen/enum.c')
-rw-r--r--clang/test/CodeGen/enum.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/test/CodeGen/enum.c b/clang/test/CodeGen/enum.c
index 0e239f1a8ee..ef50f9eead6 100644
--- a/clang/test/CodeGen/enum.c
+++ b/clang/test/CodeGen/enum.c
@@ -1,5 +1,7 @@
-// RUN: %clang_cc1 -triple i386-unknown-unknown %s -O3 -emit-llvm -o - | grep 'ret i32 6'
-// RUN: %clang_cc1 -triple i386-unknown-unknown -x c++ %s -O3 -emit-llvm -o - | grep 'ret i32 7'
+// RUN: %clang_cc1 -triple i386-unknown-unknown %s -O3 -emit-llvm -o - | FileCheck -check-prefix=CHECK-C %s
+// RUN: %clang_cc1 -triple i386-unknown-unknown -x c++ %s -O3 -emit-llvm -o - | FileCheck -check-prefix=CHECK-CXX %s
+// CHECK-C: ret i32 6
+// CHECK-CXX: ret i32 7
// This test case illustrates a peculiarity of the promotion of
// enumeration types in C and C++. In particular, the enumeration type
@@ -19,4 +21,3 @@ int main (void)
return r;
}
-
OpenPOWER on IntegriCloud