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