From 6f3ff3e34d7087e3cb084ba4675386002a807ccd Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 13 Feb 2004 22:04:41 +0000 Subject: New testcase. The CFE should not generate illegal LLVM intrinsics, even if the input program is horribly broken (like 126.gcc). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11401 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CFrontend/2004-02-13-IllegalVararg.c.tr | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/CFrontend/2004-02-13-IllegalVararg.c.tr (limited to 'test') diff --git a/test/CFrontend/2004-02-13-IllegalVararg.c.tr b/test/CFrontend/2004-02-13-IllegalVararg.c.tr new file mode 100644 index 0000000000..1f3eded0cd --- /dev/null +++ b/test/CFrontend/2004-02-13-IllegalVararg.c.tr @@ -0,0 +1,11 @@ +// RUN: %llvmgcc -xc %s -c -o - | llc + +#include + +float test(int X, ...) { + va_list ap; + float F; + va_start(ap, X); + F = va_arg(ap, float); + return F; +} -- cgit v1.2.3-18-g5258