mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-03-04 16:41:43 +00:00
testcases for -fno-builtin
llvm-svn: 36038
This commit is contained in:
parent
14a251b937
commit
20746d84c2
7
llvm/test/C++Frontend/2007-04-14-FNoBuiltin.cpp
Normal file
7
llvm/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
llvm/test/CFrontend/2007-04-14-FNoBuiltin.c
Normal file
7
llvm/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