Skip to content

Commit

Permalink
test: Add test on vararg function to llvm conversion.
Browse files Browse the repository at this point in the history
  • Loading branch information
xlauko committed Oct 8, 2024
1 parent f4ab31e commit 5e34acb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/vast/Conversion/printf-a.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// RUN: %vast-front -vast-emit-mlir=llvm %s -o - | %file-check %s
#include <stdio.h>

int main(int argc, char **argv)
{
// CHECK: llvm.call @printf({{.*}}, {{.*}}) vararg(!llvm.func<i32 (ptr, ...)>) : (!llvm.ptr, i32) -> i32
printf("argc: %i\n", argc);
}

0 comments on commit 5e34acb

Please sign in to comment.