diff options
author | John McCall <rjmccall@apple.com> | 2010-02-24 07:33:39 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-02-24 07:33:39 +0000 |
commit | b7d35893186564bf8c4e706e5d05df06b23d2dc7 (patch) | |
tree | b2d2494e5886b88c2913f2cc8b8bdbd93f316a8b /test/CodeGen/functions.c | |
parent | 0b0ef0a70b8010c66fad2603e4423ef1c1dc7015 (diff) |
Fix test case and convert fully to FileCheck.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97032 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/functions.c')
-rw-r--r-- | test/CodeGen/functions.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/CodeGen/functions.c b/test/CodeGen/functions.c index d9c87d53ed..1e79f01501 100644 --- a/test/CodeGen/functions.c +++ b/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) { |