Skip to content

Commit

Permalink
Add test for @main return type
Browse files Browse the repository at this point in the history
  • Loading branch information
sampsyo authored and Pat-Lafon committed Sep 9, 2023
1 parent f03c53e commit b76613c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/check/mainret.bril
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@main(x: int): int {
ret x;
}
1 change: 1 addition & 0 deletions test/check/mainret.err
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1:1: @main must have no return type; found int

0 comments on commit b76613c

Please sign in to comment.