2013-10-26 23:43:55 +08:00
|
|
|
// RUN: %clang_cc1 -emit-llvm %s -O2 -fno-builtin -o - | FileCheck %s
|
2016-01-06 22:35:46 +08:00
|
|
|
// RUN: %clang_cc1 -emit-llvm %s -O2 -fno-builtin-printf -o - | FileCheck %s
|
2011-07-27 06:17:02 +08:00
|
|
|
// Check that -fno-builtin is honored.
|
|
|
|
|
|
|
|
extern int printf(const char*, ...);
|
2013-10-26 23:43:55 +08:00
|
|
|
|
2015-06-30 01:29:50 +08:00
|
|
|
// CHECK: define {{.*}}void {{.*}}foo(
|
2011-07-27 06:17:02 +08:00
|
|
|
void foo(const char *msg) {
|
2013-10-26 23:43:55 +08:00
|
|
|
// CHECK: call {{.*}}printf
|
|
|
|
printf("%s\n",msg);
|
2011-07-27 06:17:02 +08:00
|
|
|
}
|