Skip to content

Commit

Permalink
[TESTS] including test for #38
Browse files Browse the repository at this point in the history
  • Loading branch information
Cr0a3 committed Oct 27, 2024
1 parent db46118 commit c18bb56
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/bugs/#38.yl
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# RUN:
cargo run -p ylc -- -in=%s -o=out.o
gcc out.o %c -o a.exe
./a.exe
# IN:

define i32 @add(i32 %a, i32 %b) {
entry:
%ret = mul i32 %a, %b
ret i32 %ret
}

# IN2:
extern int add(int, int);

int main() {
return add(2, 3);
}

# EXIT_CODE=5

0 comments on commit c18bb56

Please sign in to comment.