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 out-of-bounds stores to a Uint8ClampedArray that are aliased to out-of-bounds loads don't crash. 25 26On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 27 28 29PASS foo(array, 100000000, 42) is undefined 30PASS foo(array, 100000000, 42) is undefined 31PASS foo(array, 100000000, 42) is undefined 32PASS foo(array, 100000000, 42) is undefined 33PASS foo(array, 100000000, 42) is undefined 34PASS foo(array, 100000000, 42) is undefined 35PASS foo(array, 100000000, 42) is undefined 36PASS foo(array, 100000000, 42) is undefined 37PASS foo(array, 100000000, 42) is undefined 38PASS foo(array, 100000000, 42) is undefined 39PASS foo(array, 100000000, 42) is undefined 40PASS foo(array, 100000000, 42) is undefined 41PASS foo(array, 100000000, 42) is undefined 42PASS foo(array, 100000000, 42) is undefined 43PASS foo(array, 100000000, 42) is undefined 44PASS foo(array, 100000000, 42) is undefined 45PASS foo(array, 100000000, 42) is undefined 46PASS foo(array, 100000000, 42) is undefined 47PASS foo(array, 100000000, 42) is undefined 48PASS foo(array, 100000000, 42) is undefined 49PASS foo(array, 100000000, 42) is undefined 50PASS foo(array, 100000000, 42) is undefined 51PASS foo(array, 100000000, 42) is undefined 52PASS foo(array, 100000000, 42) is undefined 53PASS foo(array, 100000000, 42) is undefined 54PASS foo(array, 100000000, 42) is undefined 55PASS foo(array, 100000000, 42) is undefined 56PASS foo(array, 100000000, 42) is undefined 57PASS foo(array, 100000000, 42) is undefined 58PASS foo(array, 100000000, 42) is undefined 59PASS foo(array, 100000000, 42) is undefined 60PASS foo(array, 100000000, 42) is undefined 61PASS foo(array, 100000000, 42) is undefined 62PASS foo(array, 100000000, 42) is undefined 63PASS foo(array, 100000000, 42) is undefined 64PASS foo(array, 100000000, 42) is undefined 65PASS foo(array, 100000000, 42) is undefined 66PASS foo(array, 100000000, 42) is undefined 67PASS foo(array, 100000000, 42) is undefined 68PASS foo(array, 100000000, 42) is undefined 69PASS foo(array, 100000000, 42) is undefined 70PASS foo(array, 100000000, 42) is undefined 71PASS foo(array, 100000000, 42) is undefined 72PASS foo(array, 100000000, 42) is undefined 73PASS foo(array, 100000000, 42) is undefined 74PASS foo(array, 100000000, 42) is undefined 75PASS foo(array, 100000000, 42) is undefined 76PASS foo(array, 100000000, 42) is undefined 77PASS foo(array, 100000000, 42) is undefined 78PASS foo(array, 100000000, 42) is undefined 79PASS foo(array, 100000000, 42) is undefined 80PASS foo(array, 100000000, 42) is undefined 81PASS foo(array, 100000000, 42) is undefined 82PASS foo(array, 100000000, 42) is undefined 83PASS foo(array, 100000000, 42) is undefined 84PASS foo(array, 100000000, 42) is undefined 85PASS foo(array, 100000000, 42) is undefined 86PASS foo(array, 100000000, 42) is undefined 87PASS foo(array, 100000000, 42) is undefined 88PASS foo(array, 100000000, 42) is undefined 89PASS foo(array, 100000000, 42) is undefined 90PASS foo(array, 100000000, 42) is undefined 91PASS foo(array, 100000000, 42) is undefined 92PASS foo(array, 100000000, 42) is undefined 93PASS foo(array, 100000000, 42) is undefined 94PASS foo(array, 100000000, 42) is undefined 95PASS foo(array, 100000000, 42) is undefined 96PASS foo(array, 100000000, 42) is undefined 97PASS foo(array, 100000000, 42) is undefined 98PASS foo(array, 100000000, 42) is undefined 99PASS foo(array, 100000000, 42) is undefined 100PASS foo(array, 100000000, 42) is undefined 101PASS foo(array, 100000000, 42) is undefined 102PASS foo(array, 100000000, 42) is undefined 103PASS foo(array, 100000000, 42) is undefined 104PASS foo(array, 100000000, 42) is undefined 105PASS foo(array, 100000000, 42) is undefined 106PASS foo(array, 100000000, 42) is undefined 107PASS foo(array, 100000000, 42) is undefined 108PASS foo(array, 100000000, 42) is undefined 109PASS foo(array, 100000000, 42) is undefined 110PASS foo(array, 100000000, 42) is undefined 111PASS foo(array, 100000000, 42) is undefined 112PASS foo(array, 100000000, 42) is undefined 113PASS foo(array, 100000000, 42) is undefined 114PASS foo(array, 100000000, 42) is undefined 115PASS foo(array, 100000000, 42) is undefined 116PASS foo(array, 100000000, 42) is undefined 117PASS foo(array, 100000000, 42) is undefined 118PASS foo(array, 100000000, 42) is undefined 119PASS foo(array, 100000000, 42) is undefined 120PASS foo(array, 100000000, 42) is undefined 121PASS foo(array, 100000000, 42) is undefined 122PASS foo(array, 100000000, 42) is undefined 123PASS foo(array, 100000000, 42) is undefined 124PASS foo(array, 100000000, 42) is undefined 125PASS foo(array, 100000000, 42) is undefined 126PASS foo(array, 100000000, 42) is undefined 127PASS foo(array, 100000000, 42) is undefined 128PASS foo(array, 100000000, 42) is undefined 129PASS foo(array, 100000000, 42) is undefined 130PASS foo(array, 100000000, 42) is undefined 131PASS foo(array, 100000000, 42) is undefined 132PASS foo(array, 100000000, 42) is undefined 133PASS foo(array, 100000000, 42) is undefined 134PASS foo(array, 100000000, 42) is undefined 135PASS foo(array, 100000000, 42) is undefined 136PASS foo(array, 100000000, 42) is undefined 137PASS foo(array, 100000000, 42) is undefined 138PASS foo(array, 100000000, 42) is undefined 139PASS foo(array, 100000000, 42) is undefined 140PASS foo(array, 100000000, 42) is undefined 141PASS foo(array, 100000000, 42) is undefined 142PASS foo(array, 100000000, 42) is undefined 143PASS foo(array, 100000000, 42) is undefined 144PASS foo(array, 100000000, 42) is undefined 145PASS foo(array, 100000000, 42) is undefined 146PASS foo(array, 100000000, 42) is undefined 147PASS foo(array, 100000000, 42) is undefined 148PASS foo(array, 100000000, 42) is undefined 149PASS foo(array, 100000000, 42) is undefined 150PASS foo(array, 100000000, 42) is undefined 151PASS foo(array, 100000000, 42) is undefined 152PASS foo(array, 100000000, 42) is undefined 153PASS foo(array, 100000000, 42) is undefined 154PASS foo(array, 100000000, 42) is undefined 155PASS foo(array, 100000000, 42) is undefined 156PASS foo(array, 100000000, 42) is undefined 157PASS foo(array, 100000000, 42) is undefined 158PASS foo(array, 100000000, 42) is undefined 159PASS foo(array, 100000000, 42) is undefined 160PASS foo(array, 100000000, 42) is undefined 161PASS foo(array, 100000000, 42) is undefined 162PASS foo(array, 100000000, 42) is undefined 163PASS foo(array, 100000000, 42) is undefined 164PASS foo(array, 100000000, 42) is undefined 165PASS foo(array, 100000000, 42) is undefined 166PASS foo(array, 100000000, 42) is undefined 167PASS foo(array, 100000000, 42) is undefined 168PASS foo(array, 100000000, 42) is undefined 169PASS foo(array, 100000000, 42) is undefined 170PASS foo(array, 100000000, 42) is undefined 171PASS foo(array, 100000000, 42) is undefined 172PASS foo(array, 100000000, 42) is undefined 173PASS foo(array, 100000000, 42) is undefined 174PASS foo(array, 100000000, 42) is undefined 175PASS foo(array, 100000000, 42) is undefined 176PASS foo(array, 100000000, 42) is undefined 177PASS foo(array, 100000000, 42) is undefined 178PASS foo(array, 100000000, 42) is undefined 179PASS foo(array, 100000000, 42) is undefined 180PASS foo(array, 100000000, 42) is undefined 181PASS foo(array, 100000000, 42) is undefined 182PASS foo(array, 100000000, 42) is undefined 183PASS foo(array, 100000000, 42) is undefined 184PASS foo(array, 100000000, 42) is undefined 185PASS foo(array, 100000000, 42) is undefined 186PASS foo(array, 100000000, 42) is undefined 187PASS foo(array, 100000000, 42) is undefined 188PASS foo(array, 100000000, 42) is undefined 189PASS foo(array, 100000000, 42) is undefined 190PASS foo(array, 100000000, 42) is undefined 191PASS foo(array, 100000000, 42) is undefined 192PASS foo(array, 100000000, 42) is undefined 193PASS foo(array, 100000000, 42) is undefined 194PASS foo(array, 100000000, 42) is undefined 195PASS foo(array, 100000000, 42) is undefined 196PASS foo(array, 100000000, 42) is undefined 197PASS foo(array, 100000000, 42) is undefined 198PASS foo(array, 100000000, 42) is undefined 199PASS foo(array, 100000000, 42) is undefined 200PASS foo(array, 100000000, 42) is undefined 201PASS foo(array, 100000000, 42) is undefined 202PASS foo(array, 100000000, 42) is undefined 203PASS foo(array, 100000000, 42) is undefined 204PASS foo(array, 100000000, 42) is undefined 205PASS foo(array, 100000000, 42) is undefined 206PASS foo(array, 100000000, 42) is undefined 207PASS foo(array, 100000000, 42) is undefined 208PASS foo(array, 100000000, 42) is undefined 209PASS foo(array, 100000000, 42) is undefined 210PASS foo(array, 100000000, 42) is undefined 211PASS foo(array, 100000000, 42) is undefined 212PASS foo(array, 100000000, 42) is undefined 213PASS foo(array, 100000000, 42) is undefined 214PASS foo(array, 100000000, 42) is undefined 215PASS foo(array, 100000000, 42) is undefined 216PASS foo(array, 100000000, 42) is undefined 217PASS foo(array, 100000000, 42) is undefined 218PASS foo(array, 100000000, 42) is undefined 219PASS foo(array, 100000000, 42) is undefined 220PASS foo(array, 100000000, 42) is undefined 221PASS foo(array, 100000000, 42) is undefined 222PASS foo(array, 100000000, 42) is undefined 223PASS foo(array, 100000000, 42) is undefined 224PASS foo(array, 100000000, 42) is undefined 225PASS foo(array, 100000000, 42) is undefined 226PASS foo(array, 100000000, 42) is undefined 227PASS foo(array, 100000000, 42) is undefined 228PASS foo(array, 100000000, 42) is undefined 229PASS successfullyParsed is true 230 231TEST COMPLETE 232 233