Skip to content

Commit

Permalink
test: Add test for lowering of using a typedefed function argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jezurko authored and xlauko committed Nov 9, 2023
1 parent eadd9f2 commit 5f7ecc8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/vast/Transform/HL/ResolveTypedefs/func-b.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// RUN: %vast-front -vast-emit-mlir=hl %s -o - | %vast-opt --vast-hl-lower-typedefs | %file-check %s
typedef int INT;

// CHECK: hl.func @fn ([[A1:%arg[0-9]+]]: !hl.lvalue<!hl.int>) -> !hl.int
int fn(INT x) {
// CHECK: hl.ref [[A1]] : (!hl.lvalue<!hl.int>) -> !hl.lvalue<!hl.int>
return x;
}

0 comments on commit 5f7ecc8

Please sign in to comment.