mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-24 07:35:04 +00:00
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:
parent
3284d1f18a
commit
1c44c4db21
test
7
test/C++Frontend/2007-04-14-FNoBuiltin.cpp
Normal file
7
test/C++Frontend/2007-04-14-FNoBuiltin.cpp
Normal 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);
|
||||
}
|
7
test/CFrontend/2007-04-14-FNoBuiltin.c
Normal file
7
test/CFrontend/2007-04-14-FNoBuiltin.c
Normal 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);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user