testcases for -fno-builtin

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36038 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dale Johannesen
2007-04-15 00:18:31 +00:00
parent 3284d1f18a
commit 1c44c4db21
2 changed files with 14 additions and 0 deletions

View File

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