Skip to content

Commit 54ced66

Browse files
committed
[tests] Add regression test for int *= overflow
1 parent b3bda71 commit 54ced66

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/cppia/Client.hx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,14 @@ class Client
197197
return;
198198
}
199199

200+
// regression test for #1257
201+
var x = 1290555;
202+
x *= 1290555;
203+
if (x != -915102823) {
204+
Common.status = 'Failed regression test for #1257. x: $x';
205+
return;
206+
}
207+
200208
final extending = new ClientExtendedExtendedRoot();
201209

202210
extending.addValue();

0 commit comments

Comments
 (0)