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