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 committed Sep 8, 2023
1 parent 19ad341 commit cf19acb
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 cf19acb

Please sign in to comment.