From 2f0ca41d213deb3637502fc9182e99035e7d1fc4 Mon Sep 17 00:00:00 2001 From: Alp Toker Date: Sat, 26 Oct 2013 15:43:55 +0000 Subject: [PATCH] FileCheckize git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193474 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/2007-04-14-FNoBuiltin.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/CodeGen/2007-04-14-FNoBuiltin.c b/test/CodeGen/2007-04-14-FNoBuiltin.c index 5c95c0810e..25ae01c5dc 100644 --- a/test/CodeGen/2007-04-14-FNoBuiltin.c +++ b/test/CodeGen/2007-04-14-FNoBuiltin.c @@ -1,7 +1,10 @@ -// RUN: %clang_cc1 -emit-llvm %s -O2 -fno-builtin -o - | grep 'call.*printf' +// RUN: %clang_cc1 -emit-llvm %s -O2 -fno-builtin -o - | FileCheck %s // Check that -fno-builtin is honored. extern int printf(const char*, ...); + +// CHECK: define void {{.*}}foo( void foo(const char *msg) { - printf("%s\n",msg); + // CHECK: call {{.*}}printf + printf("%s\n",msg); } -- 2.40.0