mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-12 23:37:33 +00:00
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
This commit is contained in:
parent
0021c31b60
commit
6f3ff3e34d
11
test/CFrontend/2004-02-13-IllegalVararg.c.tr
Normal file
11
test/CFrontend/2004-02-13-IllegalVararg.c.tr
Normal 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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user