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); }