diff --git a/test/Regression/CBackend/2003-10-23-ZeroArgVarargs.ll b/test/Regression/CBackend/2003-10-23-ZeroArgVarargs.ll new file mode 100644 index 00000000000..4ba97411f02 --- /dev/null +++ b/test/Regression/CBackend/2003-10-23-ZeroArgVarargs.ll @@ -0,0 +1,9 @@ + +declare sbyte* %llvm.va_start() +declare void %llvm.va_end(sbyte*) + +void %test(...) { + %P = call sbyte* %llvm.va_start() + call void %llvm.va_end(sbyte* %P) + ret void +}