FileCheckize

llvm-svn: 193474
This commit is contained in:
Alp Toker 2013-10-26 15:43:55 +00:00
parent 1774954274
commit a933f94c92
1 changed files with 5 additions and 2 deletions

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