-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…2472) fixes #22469; generates `nimTestErrorFlag` for top level statements (cherry picked from commit 09d0fda)
- Loading branch information
Showing
3 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# ModuleB | ||
echo "First top-level statement of ModuleB" | ||
echo high(int) + 1 | ||
echo "ModuleB last statement" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
discard """ | ||
exitcode: 1 | ||
output: ''' | ||
First top-level statement of ModuleB | ||
m22469.nim(3) m22469 | ||
fatal.nim(53) sysFatal | ||
Error: unhandled exception: over- or underflow [OverflowDefect] | ||
''' | ||
""" | ||
|
||
# bug #22469 | ||
|
||
# ModuleA | ||
import m22469 | ||
echo "ModuleA about to have exception" | ||
echo high(int) + 1 |