diff options
Diffstat (limited to 'test/CodeGenCXX/2007-04-14-FNoBuiltin.cpp')
-rw-r--r-- | test/CodeGenCXX/2007-04-14-FNoBuiltin.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGenCXX/2007-04-14-FNoBuiltin.cpp b/test/CodeGenCXX/2007-04-14-FNoBuiltin.cpp new file mode 100644 index 000000000000..4475fda95c08 --- /dev/null +++ b/test/CodeGenCXX/2007-04-14-FNoBuiltin.cpp @@ -0,0 +1,8 @@ +// RUN: %clang_cc1 -emit-llvm %s -fno-builtin -o - | FileCheck %s +// Check that -fno-builtin is honored. + +extern "C" int printf(const char*, ...); +void foo(const char *msg) { + // CHECK: call{{.*}}printf + printf("%s\n",msg); +} |