1# Copyright 2013 the V8 project authors. All rights reserved. 2# Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions 6# are met: 7# 1. Redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer. 9# 2. Redistributions in binary form must reproduce the above copyright 10# notice, this list of conditions and the following disclaimer in the 11# documentation and/or other materials provided with the distribution. 12# 13# THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY 14# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 15# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 16# DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY 17# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 18# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 19# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 20# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 22# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 24Tests what happens when you multiply a big unknown integer with a small known integer. 25 26On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 27 28 29PASS foo(2147483647) is 140737488289792 30PASS foo(2147483647) is 140737488289792 31PASS foo(2147483647) is 140737488289792 32PASS foo(2147483647) is 140737488289792 33PASS foo(2147483647) is 140737488289792 34PASS foo(2147483647) is 140737488289792 35PASS foo(2147483647) is 140737488289792 36PASS foo(2147483647) is 140737488289792 37PASS foo(2147483647) is 140737488289792 38PASS foo(2147483647) is 140737488289792 39PASS foo(2147483647) is 140737488289792 40PASS foo(2147483647) is 140737488289792 41PASS foo(2147483647) is 140737488289792 42PASS foo(2147483647) is 140737488289792 43PASS foo(2147483647) is 140737488289792 44PASS foo(2147483647) is 140737488289792 45PASS foo(2147483647) is 140737488289792 46PASS foo(2147483647) is 140737488289792 47PASS foo(2147483647) is 140737488289792 48PASS foo(2147483647) is 140737488289792 49PASS foo(2147483647) is 140737488289792 50PASS foo(2147483647) is 140737488289792 51PASS foo(2147483647) is 140737488289792 52PASS foo(2147483647) is 140737488289792 53PASS foo(2147483647) is 140737488289792 54PASS foo(2147483647) is 140737488289792 55PASS foo(2147483647) is 140737488289792 56PASS foo(2147483647) is 140737488289792 57PASS foo(2147483647) is 140737488289792 58PASS foo(2147483647) is 140737488289792 59PASS foo(2147483647) is 140737488289792 60PASS foo(2147483647) is 140737488289792 61PASS foo(2147483647) is 140737488289792 62PASS foo(2147483647) is 140737488289792 63PASS foo(2147483647) is 140737488289792 64PASS foo(2147483647) is 140737488289792 65PASS foo(2147483647) is 140737488289792 66PASS foo(2147483647) is 140737488289792 67PASS foo(2147483647) is 140737488289792 68PASS foo(2147483647) is 140737488289792 69PASS foo(2147483647) is 140737488289792 70PASS foo(2147483647) is 140737488289792 71PASS foo(2147483647) is 140737488289792 72PASS foo(2147483647) is 140737488289792 73PASS foo(2147483647) is 140737488289792 74PASS foo(2147483647) is 140737488289792 75PASS foo(2147483647) is 140737488289792 76PASS foo(2147483647) is 140737488289792 77PASS foo(2147483647) is 140737488289792 78PASS foo(2147483647) is 140737488289792 79PASS foo(2147483647) is 140737488289792 80PASS foo(2147483647) is 140737488289792 81PASS foo(2147483647) is 140737488289792 82PASS foo(2147483647) is 140737488289792 83PASS foo(2147483647) is 140737488289792 84PASS foo(2147483647) is 140737488289792 85PASS foo(2147483647) is 140737488289792 86PASS foo(2147483647) is 140737488289792 87PASS foo(2147483647) is 140737488289792 88PASS foo(2147483647) is 140737488289792 89PASS foo(2147483647) is 140737488289792 90PASS foo(2147483647) is 140737488289792 91PASS foo(2147483647) is 140737488289792 92PASS foo(2147483647) is 140737488289792 93PASS foo(2147483647) is 140737488289792 94PASS foo(2147483647) is 140737488289792 95PASS foo(2147483647) is 140737488289792 96PASS foo(2147483647) is 140737488289792 97PASS foo(2147483647) is 140737488289792 98PASS foo(2147483647) is 140737488289792 99PASS foo(2147483647) is 140737488289792 100PASS foo(2147483647) is 140737488289792 101PASS foo(2147483647) is 140737488289792 102PASS foo(2147483647) is 140737488289792 103PASS foo(2147483647) is 140737488289792 104PASS foo(2147483647) is 140737488289792 105PASS foo(2147483647) is 140737488289792 106PASS foo(2147483647) is 140737488289792 107PASS foo(2147483647) is 140737488289792 108PASS foo(2147483647) is 140737488289792 109PASS foo(2147483647) is 140737488289792 110PASS foo(2147483647) is 140737488289792 111PASS foo(2147483647) is 140737488289792 112PASS foo(2147483647) is 140737488289792 113PASS foo(2147483647) is 140737488289792 114PASS foo(2147483647) is 140737488289792 115PASS foo(2147483647) is 140737488289792 116PASS foo(2147483647) is 140737488289792 117PASS foo(2147483647) is 140737488289792 118PASS foo(2147483647) is 140737488289792 119PASS foo(2147483647) is 140737488289792 120PASS foo(2147483647) is 140737488289792 121PASS foo(2147483647) is 140737488289792 122PASS foo(2147483647) is 140737488289792 123PASS foo(2147483647) is 140737488289792 124PASS foo(2147483647) is 140737488289792 125PASS foo(2147483647) is 140737488289792 126PASS foo(2147483647) is 140737488289792 127PASS foo(2147483647) is 140737488289792 128PASS foo(2147483647) is 140737488289792 129PASS successfullyParsed is true 130 131TEST COMPLETE 132 133