[llvm-commits] CVS: llvm/test/Regression/CFrontend/2004-02-13-IllegalVararg.c.tr

Chris Lattner lattner at cs.uiuc.edu
Fri Feb 13 16:05:01 PST 2004


Changes in directory llvm/test/Regression/CFrontend:

2004-02-13-IllegalVararg.c.tr added (r1.1)

---
Log message:

New testcase.  The CFE should not generate illegal LLVM intrinsics, even if
the input program is horribly broken (like 126.gcc).


---
Diffs of the changes:  (+11 -0)

Index: llvm/test/Regression/CFrontend/2004-02-13-IllegalVararg.c.tr
diff -c /dev/null llvm/test/Regression/CFrontend/2004-02-13-IllegalVararg.c.tr:1.1
*** /dev/null	Fri Feb 13 16:04:51 2004
--- llvm/test/Regression/CFrontend/2004-02-13-IllegalVararg.c.tr	Fri Feb 13 16:04:41 2004
***************
*** 0 ****
--- 1,11 ----
+ // RUN: %llvmgcc -xc %s -c -o - | llc
+ 
+ #include <stdarg.h>
+ 
+ float test(int X, ...) {
+   va_list ap;
+   float F;
+   va_start(ap, X);
+   F = va_arg(ap, float);
+   return F;
+ }





More information about the llvm-commits mailing list