From a933f94c92862db06ec6c564683012180b20762c Mon Sep 17 00:00:00 2001 From: Alp Toker Date: Sat, 26 Oct 2013 15:43:55 +0000 Subject: [PATCH] FileCheckize llvm-svn: 193474 --- clang/test/CodeGen/2007-04-14-FNoBuiltin.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/clang/test/CodeGen/2007-04-14-FNoBuiltin.c b/clang/test/CodeGen/2007-04-14-FNoBuiltin.c index 5c95c0810e47..25ae01c5dcc0 100644 --- a/clang/test/CodeGen/2007-04-14-FNoBuiltin.c +++ b/clang/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); }