summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-02-24 07:33:39 +0000
committerJohn McCall <rjmccall@apple.com>2010-02-24 07:33:39 +0000
commit1826980fc8b198d417c3ffdd8222afb60bd0a189 (patch)
tree1f63ee7f5e27753f62fc108febd8249fcacc9514 /clang/test
parentab41756c2ebc81ab4cb2d2dfd4e60fd5d760254e (diff)
downloadbcm5719-llvm-1826980fc8b198d417c3ffdd8222afb60bd0a189.tar.gz
bcm5719-llvm-1826980fc8b198d417c3ffdd8222afb60bd0a189.zip
Fix test case and convert fully to FileCheck.
llvm-svn: 97032
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/CodeGen/functions.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/clang/test/CodeGen/functions.c b/clang/test/CodeGen/functions.c
index d9c87d53edb..1e79f015014 100644
--- a/clang/test/CodeGen/functions.c
+++ b/clang/test/CodeGen/functions.c
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
+// RUN: %clang_cc1 %s -emit-llvm -o - -verify | FileCheck %s
int g();
@@ -19,25 +19,25 @@ void test3(T f) {
int a(int);
int a() {return 1;}
-// RUN: grep 'define void @f0()' %t
void f0() {}
+// CHECK: define void @f0()
void f1();
-// RUN: grep 'call void @f1()' %t
void f2(void) {
+// CHECK: call void @f1()
f1(1, 2, 3);
}
-// RUN: grep 'define void @f1()' %t
+// CHECK: define void @f1()
void f1() {}
-// RUN: grep 'define .* @f3' %t | not grep -F '...'
+// CHECK: define {{.*}} @f3()
struct foo { int X, Y, Z; } f3() {
while (1) {}
}
// PR4423 - This shouldn't crash in codegen
void f4() {}
-void f5() { f4(42); }
+void f5() { f4(42); } //expected-warning {{too many arguments}}
// Qualifiers on parameter types shouldn't make a difference.
static void f6(const float f, const float g) {
OpenPOWER on IntegriCloud