diff options
-rw-r--r-- | test/CBackend/2003-10-23-ZeroArgVarargs.ll | 9 | ||||
-rw-r--r-- | test/CodeGen/CBackend/2003-10-23-ZeroArgVarargs.ll | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/test/CBackend/2003-10-23-ZeroArgVarargs.ll b/test/CBackend/2003-10-23-ZeroArgVarargs.ll new file mode 100644 index 0000000..4ba9741 --- /dev/null +++ b/test/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 +} diff --git a/test/CodeGen/CBackend/2003-10-23-ZeroArgVarargs.ll b/test/CodeGen/CBackend/2003-10-23-ZeroArgVarargs.ll new file mode 100644 index 0000000..4ba9741 --- /dev/null +++ b/test/CodeGen/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 +} |