testcases for -fno-builtin

llvm-svn: 36038
This commit is contained in:
Dale Johannesen 2007-04-15 00:18:31 +00:00
parent 14a251b937
commit 20746d84c2
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);
}

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 int printf(const char*, ...);
void foo(const char *msg) {
printf("%s\n",msg);
}