forked from OSchip/llvm-project
parent
1774954274
commit
a933f94c92
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue