New testcase. The CFE should not generate illegal LLVM intrinsics, even if

the input program is horribly broken (like 126.gcc).

llvm-svn: 11401
This commit is contained in:
Chris Lattner 2004-02-13 22:04:41 +00:00
parent b13b431a6e
commit 110d7bd802

View File

@ -0,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;
}