]> granicus.if.org Git - clang/commitdiff
FileCheckize
authorAlp Toker <alp@nuanti.com>
Sat, 26 Oct 2013 15:43:55 +0000 (15:43 +0000)
committerAlp Toker <alp@nuanti.com>
Sat, 26 Oct 2013 15:43:55 +0000 (15:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193474 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/2007-04-14-FNoBuiltin.c

index 5c95c0810e47d3cbc9f0fa4a9e1f11481297f38d..25ae01c5dcc0193be0789e70d11ebcd48140e413 100644 (file)
@@ -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);
 }