Created
November 17, 2018 14:43
-
-
Save bdw/0dd3ece19d87710b6b08262fb7ce1216 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/usr/bin/env nqp | |
sub foo(int64 $x) { | |
my int16 $y := $x; | |
my int64 $z := $y; | |
return $z; | |
} | |
my int $i := 0; | |
while ($i++ < 100_000) { | |
if (foo(100_000) != -31072) { | |
nqp::die("ERROR"); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment