r193474 - FileCheckize
Alp Toker
alp at nuanti.com
Sat Oct 26 08:43:55 PDT 2013
Author: alp
Date: Sat Oct 26 10:43:55 2013
New Revision: 193474
URL: http://llvm.org/viewvc/llvm-project?rev=193474&view=rev
Log:
FileCheckize
Modified:
cfe/trunk/test/CodeGen/2007-04-14-FNoBuiltin.c
Modified: cfe/trunk/test/CodeGen/2007-04-14-FNoBuiltin.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/2007-04-14-FNoBuiltin.c?rev=193474&r1=193473&r2=193474&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/2007-04-14-FNoBuiltin.c (original)
+++ cfe/trunk/test/CodeGen/2007-04-14-FNoBuiltin.c Sat Oct 26 10:43:55 2013
@@ -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);
}
More information about the cfe-commits
mailing list