[llvm-commits] CVS: llvm/test/C++Frontend/2007-04-14-FNoBuiltin.cpp
Dale Johannesen
dalej at apple.com
Sat Apr 14 17:19:01 PDT 2007
Changes in directory llvm/test/C++Frontend:
2007-04-14-FNoBuiltin.cpp added (r1.1)
---
Log message:
testcases for -fno-builtin
---
Diffs of the changes: (+7 -0)
2007-04-14-FNoBuiltin.cpp | 7 +++++++
1 files changed, 7 insertions(+)
Index: llvm/test/C++Frontend/2007-04-14-FNoBuiltin.cpp
diff -c /dev/null llvm/test/C++Frontend/2007-04-14-FNoBuiltin.cpp:1.1
*** /dev/null Sat Apr 14 19:18:41 2007
--- llvm/test/C++Frontend/2007-04-14-FNoBuiltin.cpp Sat Apr 14 19:18:31 2007
***************
*** 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);
+ }
More information about the llvm-commits
mailing list