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 large integers in an integer context.
25
26On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
27
28
29PASS foo(2147483647, 2147483646) is -2147483648
30PASS foo(2147483647, 2147483646) is -2147483648
31PASS foo(2147483647, 2147483646) is -2147483648
32PASS foo(2147483647, 2147483646) is -2147483648
33PASS foo(2147483647, 2147483646) is -2147483648
34PASS foo(2147483647, 2147483646) is -2147483648
35PASS foo(2147483647, 2147483646) is -2147483648
36PASS foo(2147483647, 2147483646) is -2147483648
37PASS foo(2147483647, 2147483646) is -2147483648
38PASS foo(2147483647, 2147483646) is -2147483648
39PASS foo(2147483647, 2147483646) is -2147483648
40PASS foo(2147483647, 2147483646) is -2147483648
41PASS foo(2147483647, 2147483646) is -2147483648
42PASS foo(2147483647, 2147483646) is -2147483648
43PASS foo(2147483647, 2147483646) is -2147483648
44PASS foo(2147483647, 2147483646) is -2147483648
45PASS foo(2147483647, 2147483646) is -2147483648
46PASS foo(2147483647, 2147483646) is -2147483648
47PASS foo(2147483647, 2147483646) is -2147483648
48PASS foo(2147483647, 2147483646) is -2147483648
49PASS foo(2147483647, 2147483646) is -2147483648
50PASS foo(2147483647, 2147483646) is -2147483648
51PASS foo(2147483647, 2147483646) is -2147483648
52PASS foo(2147483647, 2147483646) is -2147483648
53PASS foo(2147483647, 2147483646) is -2147483648
54PASS foo(2147483647, 2147483646) is -2147483648
55PASS foo(2147483647, 2147483646) is -2147483648
56PASS foo(2147483647, 2147483646) is -2147483648
57PASS foo(2147483647, 2147483646) is -2147483648
58PASS foo(2147483647, 2147483646) is -2147483648
59PASS foo(2147483647, 2147483646) is -2147483648
60PASS foo(2147483647, 2147483646) is -2147483648
61PASS foo(2147483647, 2147483646) is -2147483648
62PASS foo(2147483647, 2147483646) is -2147483648
63PASS foo(2147483647, 2147483646) is -2147483648
64PASS foo(2147483647, 2147483646) is -2147483648
65PASS foo(2147483647, 2147483646) is -2147483648
66PASS foo(2147483647, 2147483646) is -2147483648
67PASS foo(2147483647, 2147483646) is -2147483648
68PASS foo(2147483647, 2147483646) is -2147483648
69PASS foo(2147483647, 2147483646) is -2147483648
70PASS foo(2147483647, 2147483646) is -2147483648
71PASS foo(2147483647, 2147483646) is -2147483648
72PASS foo(2147483647, 2147483646) is -2147483648
73PASS foo(2147483647, 2147483646) is -2147483648
74PASS foo(2147483647, 2147483646) is -2147483648
75PASS foo(2147483647, 2147483646) is -2147483648
76PASS foo(2147483647, 2147483646) is -2147483648
77PASS foo(2147483647, 2147483646) is -2147483648
78PASS foo(2147483647, 2147483646) is -2147483648
79PASS foo(2147483647, 2147483646) is -2147483648
80PASS foo(2147483647, 2147483646) is -2147483648
81PASS foo(2147483647, 2147483646) is -2147483648
82PASS foo(2147483647, 2147483646) is -2147483648
83PASS foo(2147483647, 2147483646) is -2147483648
84PASS foo(2147483647, 2147483646) is -2147483648
85PASS foo(2147483647, 2147483646) is -2147483648
86PASS foo(2147483647, 2147483646) is -2147483648
87PASS foo(2147483647, 2147483646) is -2147483648
88PASS foo(2147483647, 2147483646) is -2147483648
89PASS foo(2147483647, 2147483646) is -2147483648
90PASS foo(2147483647, 2147483646) is -2147483648
91PASS foo(2147483647, 2147483646) is -2147483648
92PASS foo(2147483647, 2147483646) is -2147483648
93PASS foo(2147483647, 2147483646) is -2147483648
94PASS foo(2147483647, 2147483646) is -2147483648
95PASS foo(2147483647, 2147483646) is -2147483648
96PASS foo(2147483647, 2147483646) is -2147483648
97PASS foo(2147483647, 2147483646) is -2147483648
98PASS foo(2147483647, 2147483646) is -2147483648
99PASS foo(2147483647, 2147483646) is -2147483648
100PASS foo(2147483647, 2147483646) is -2147483648
101PASS foo(2147483647, 2147483646) is -2147483648
102PASS foo(2147483647, 2147483646) is -2147483648
103PASS foo(2147483647, 2147483646) is -2147483648
104PASS foo(2147483647, 2147483646) is -2147483648
105PASS foo(2147483647, 2147483646) is -2147483648
106PASS foo(2147483647, 2147483646) is -2147483648
107PASS foo(2147483647, 2147483646) is -2147483648
108PASS foo(2147483647, 2147483646) is -2147483648
109PASS foo(2147483647, 2147483646) is -2147483648
110PASS foo(2147483647, 2147483646) is -2147483648
111PASS foo(2147483647, 2147483646) is -2147483648
112PASS foo(2147483647, 2147483646) is -2147483648
113PASS foo(2147483647, 2147483646) is -2147483648
114PASS foo(2147483647, 2147483646) is -2147483648
115PASS foo(2147483647, 2147483646) is -2147483648
116PASS foo(2147483647, 2147483646) is -2147483648
117PASS foo(2147483647, 2147483646) is -2147483648
118PASS foo(2147483647, 2147483646) is -2147483648
119PASS foo(2147483647, 2147483646) is -2147483648
120PASS foo(2147483647, 2147483646) is -2147483648
121PASS foo(2147483647, 2147483646) is -2147483648
122PASS foo(2147483647, 2147483646) is -2147483648
123PASS foo(2147483647, 2147483646) is -2147483648
124PASS foo(2147483647, 2147483646) is -2147483648
125PASS foo(2147483647, 2147483646) is -2147483648
126PASS foo(2147483647, 2147483646) is -2147483648
127PASS foo(2147483647, 2147483646) is -2147483648
128PASS foo(2147483647, 2147483646) is -2147483648
129PASS successfullyParsed is true
130
131TEST COMPLETE
132
133