[llvm-commits] CVS: llvm/test/CFrontend/2007-04-14-FNoBuiltin.c
Dale Johannesen
dalej at apple.com
Sat Apr 14 17:18:59 PDT 2007
Changes in directory llvm/test/CFrontend:
2007-04-14-FNoBuiltin.c added (r1.1)
---
Log message:
testcases for -fno-builtin
---
Diffs of the changes: (+7 -0)
2007-04-14-FNoBuiltin.c | 7 +++++++
1 files changed, 7 insertions(+)
Index: llvm/test/CFrontend/2007-04-14-FNoBuiltin.c
diff -c /dev/null llvm/test/CFrontend/2007-04-14-FNoBuiltin.c:1.1
*** /dev/null Sat Apr 14 19:18:41 2007
--- llvm/test/CFrontend/2007-04-14-FNoBuiltin.c Sat Apr 14 19:18:30 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 int printf(const char*, ...);
+ void foo(const char *msg) {
+ printf("%s\n",msg);
+ }
More information about the llvm-commits
mailing list