fpizlo@apple.com | 8bb40d7f | 2012-11-12 22:54:42 +0000 | [diff] [blame] | 1 | description( |
2 | "Tests what happens when you multiply a big unknown integer with a small known integer and detect that we have had an overflow." | ||||
3 | ); | ||||
4 | |||||
5 | function foo(a) { | ||||
6 | return a * 65536; | ||||
7 | } | ||||
8 | |||||
9 | for (var i = 0; i < 1000; ++i) | ||||
10 | shouldBe("foo(2147483647)", "140737488289792"); | ||||
11 | |||||
12 |