diff options
author | Dale Johannesen <dalej@apple.com> | 2007-04-15 00:18:31 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2007-04-15 00:18:31 +0000 |
commit | 1c44c4db2170f9cea4a06d317e0684bfc4097b84 (patch) | |
tree | 2a4de860c663ff0a8fec948333af9d99d35003fd /test/C++Frontend | |
parent | 3284d1f18a91ee54ea18cec31e196e965e35a6e6 (diff) | |
download | external_llvm-1c44c4db2170f9cea4a06d317e0684bfc4097b84.zip external_llvm-1c44c4db2170f9cea4a06d317e0684bfc4097b84.tar.gz external_llvm-1c44c4db2170f9cea4a06d317e0684bfc4097b84.tar.bz2 |
testcases for -fno-builtin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36038 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/C++Frontend')
-rw-r--r-- | test/C++Frontend/2007-04-14-FNoBuiltin.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/C++Frontend/2007-04-14-FNoBuiltin.cpp b/test/C++Frontend/2007-04-14-FNoBuiltin.cpp new file mode 100644 index 0000000..c52b30b --- /dev/null +++ b/test/C++Frontend/2007-04-14-FNoBuiltin.cpp @@ -0,0 +1,7 @@ +// RUN: %llvmgcc -S %s -O2 -fno-builtin -o - | llvm-as -f | llc | grep -v puts +// Check that -fno-builtin is honored. + +extern "C" int printf(const char*, ...); +void foo(const char *msg) { + printf("%s\n",msg); +} |