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 having a dead, and redundant, use of array.length doesn't cause compiler crashes. 25 26On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 27 28 29PASS foo([1, 2, 3]) is 3 30PASS foo([1, 2, 3]) is 3 31PASS foo([1, 2, 3]) is 3 32PASS foo([1, 2, 3]) is 3 33PASS foo([1, 2, 3]) is 3 34PASS foo([1, 2, 3]) is 3 35PASS foo([1, 2, 3]) is 3 36PASS foo([1, 2, 3]) is 3 37PASS foo([1, 2, 3]) is 3 38PASS foo([1, 2, 3]) is 3 39PASS foo([1, 2, 3]) is 3 40PASS foo([1, 2, 3]) is 3 41PASS foo([1, 2, 3]) is 3 42PASS foo([1, 2, 3]) is 3 43PASS foo([1, 2, 3]) is 3 44PASS foo([1, 2, 3]) is 3 45PASS foo([1, 2, 3]) is 3 46PASS foo([1, 2, 3]) is 3 47PASS foo([1, 2, 3]) is 3 48PASS foo([1, 2, 3]) is 3 49PASS foo([1, 2, 3]) is 3 50PASS foo([1, 2, 3]) is 3 51PASS foo([1, 2, 3]) is 3 52PASS foo([1, 2, 3]) is 3 53PASS foo([1, 2, 3]) is 3 54PASS foo([1, 2, 3]) is 3 55PASS foo([1, 2, 3]) is 3 56PASS foo([1, 2, 3]) is 3 57PASS foo([1, 2, 3]) is 3 58PASS foo([1, 2, 3]) is 3 59PASS foo([1, 2, 3]) is 3 60PASS foo([1, 2, 3]) is 3 61PASS foo([1, 2, 3]) is 3 62PASS foo([1, 2, 3]) is 3 63PASS foo([1, 2, 3]) is 3 64PASS foo([1, 2, 3]) is 3 65PASS foo([1, 2, 3]) is 3 66PASS foo([1, 2, 3]) is 3 67PASS foo([1, 2, 3]) is 3 68PASS foo([1, 2, 3]) is 3 69PASS foo([1, 2, 3]) is 3 70PASS foo([1, 2, 3]) is 3 71PASS foo([1, 2, 3]) is 3 72PASS foo([1, 2, 3]) is 3 73PASS foo([1, 2, 3]) is 3 74PASS foo([1, 2, 3]) is 3 75PASS foo([1, 2, 3]) is 3 76PASS foo([1, 2, 3]) is 3 77PASS foo([1, 2, 3]) is 3 78PASS foo([1, 2, 3]) is 3 79PASS foo([1, 2, 3]) is 3 80PASS foo([1, 2, 3]) is 3 81PASS foo([1, 2, 3]) is 3 82PASS foo([1, 2, 3]) is 3 83PASS foo([1, 2, 3]) is 3 84PASS foo([1, 2, 3]) is 3 85PASS foo([1, 2, 3]) is 3 86PASS foo([1, 2, 3]) is 3 87PASS foo([1, 2, 3]) is 3 88PASS foo([1, 2, 3]) is 3 89PASS foo([1, 2, 3]) is 3 90PASS foo([1, 2, 3]) is 3 91PASS foo([1, 2, 3]) is 3 92PASS foo([1, 2, 3]) is 3 93PASS foo([1, 2, 3]) is 3 94PASS foo([1, 2, 3]) is 3 95PASS foo([1, 2, 3]) is 3 96PASS foo([1, 2, 3]) is 3 97PASS foo([1, 2, 3]) is 3 98PASS foo([1, 2, 3]) is 3 99PASS foo([1, 2, 3]) is 3 100PASS foo([1, 2, 3]) is 3 101PASS foo([1, 2, 3]) is 3 102PASS foo([1, 2, 3]) is 3 103PASS foo([1, 2, 3]) is 3 104PASS foo([1, 2, 3]) is 3 105PASS foo([1, 2, 3]) is 3 106PASS foo([1, 2, 3]) is 3 107PASS foo([1, 2, 3]) is 3 108PASS foo([1, 2, 3]) is 3 109PASS foo([1, 2, 3]) is 3 110PASS foo([1, 2, 3]) is 3 111PASS foo([1, 2, 3]) is 3 112PASS foo([1, 2, 3]) is 3 113PASS foo([1, 2, 3]) is 3 114PASS foo([1, 2, 3]) is 3 115PASS foo([1, 2, 3]) is 3 116PASS foo([1, 2, 3]) is 3 117PASS foo([1, 2, 3]) is 3 118PASS foo([1, 2, 3]) is 3 119PASS foo([1, 2, 3]) is 3 120PASS foo([1, 2, 3]) is 3 121PASS foo([1, 2, 3]) is 3 122PASS foo([1, 2, 3]) is 3 123PASS foo([1, 2, 3]) is 3 124PASS foo([1, 2, 3]) is 3 125PASS foo([1, 2, 3]) is 3 126PASS foo([1, 2, 3]) is 3 127PASS foo([1, 2, 3]) is 3 128PASS foo([1, 2, 3]) is 3 129PASS foo([1, 2, 3]) is 3 130PASS foo([1, 2, 3]) is 3 131PASS foo([1, 2, 3]) is 3 132PASS foo([1, 2, 3]) is 3 133PASS foo([1, 2, 3]) is 3 134PASS foo([1, 2, 3]) is 3 135PASS foo([1, 2, 3]) is 3 136PASS foo([1, 2, 3]) is 3 137PASS foo([1, 2, 3]) is 3 138PASS foo([1, 2, 3]) is 3 139PASS foo([1, 2, 3]) is 3 140PASS foo([1, 2, 3]) is 3 141PASS foo([1, 2, 3]) is 3 142PASS foo([1, 2, 3]) is 3 143PASS foo([1, 2, 3]) is 3 144PASS foo([1, 2, 3]) is 3 145PASS foo([1, 2, 3]) is 3 146PASS foo([1, 2, 3]) is 3 147PASS foo([1, 2, 3]) is 3 148PASS foo([1, 2, 3]) is 3 149PASS foo([1, 2, 3]) is 3 150PASS foo([1, 2, 3]) is 3 151PASS foo([1, 2, 3]) is 3 152PASS foo([1, 2, 3]) is 3 153PASS foo([1, 2, 3]) is 3 154PASS foo([1, 2, 3]) is 3 155PASS foo([1, 2, 3]) is 3 156PASS foo([1, 2, 3]) is 3 157PASS successfullyParsed is true 158 159TEST COMPLETE 160 161