From 5e34acb396deb176b470332944c892be90c9fcd5 Mon Sep 17 00:00:00 2001 From: xlauko Date: Tue, 8 Oct 2024 13:27:10 +0200 Subject: [PATCH] test: Add test on vararg function to llvm conversion. --- test/vast/Conversion/printf-a.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/vast/Conversion/printf-a.c diff --git a/test/vast/Conversion/printf-a.c b/test/vast/Conversion/printf-a.c new file mode 100644 index 0000000000..d6ea97c3f8 --- /dev/null +++ b/test/vast/Conversion/printf-a.c @@ -0,0 +1,8 @@ +// RUN: %vast-front -vast-emit-mlir=llvm %s -o - | %file-check %s +#include + +int main(int argc, char **argv) +{ + // CHECK: llvm.call @printf({{.*}}, {{.*}}) vararg(!llvm.func) : (!llvm.ptr, i32) -> i32 + printf("argc: %i\n", argc); +}