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 if you alias the arguments in a very small function, arguments simplification still works even if the variable isn't must-aliased. 25 26On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 27 28 29PASS foo(a, b, c) is 6 30PASS foo(a, b, c) is 6 31PASS foo(a, b, c) is 6 32PASS foo(a, b, c) is 6 33PASS foo(a, b, c) is 6 34PASS foo(a, b, c) is 6 35PASS foo(a, b, c) is 6 36PASS foo(a, b, c) is 6 37PASS foo(a, b, c) is 6 38PASS foo(a, b, c) is 6 39PASS foo(a, b, c) is 6 40PASS foo(a, b, c) is 6 41PASS foo(a, b, c) is 6 42PASS foo(a, b, c) is 6 43PASS foo(a, b, c) is 6 44PASS foo(a, b, c) is 6 45PASS foo(a, b, c) is 6 46PASS foo(a, b, c) is 6 47PASS foo(a, b, c) is 6 48PASS foo(a, b, c) is 6 49PASS foo(a, b, c) is 6 50PASS foo(a, b, c) is 6 51PASS foo(a, b, c) is 6 52PASS foo(a, b, c) is 6 53PASS foo(a, b, c) is 6 54PASS foo(a, b, c) is 6 55PASS foo(a, b, c) is 6 56PASS foo(a, b, c) is 6 57PASS foo(a, b, c) is 6 58PASS foo(a, b, c) is 6 59PASS foo(a, b, c) is 6 60PASS foo(a, b, c) is 6 61PASS foo(a, b, c) is 6 62PASS foo(a, b, c) is 6 63PASS foo(a, b, c) is 6 64PASS foo(a, b, c) is 6 65PASS foo(a, b, c) is 6 66PASS foo(a, b, c) is 6 67PASS foo(a, b, c) is 6 68PASS foo(a, b, c) is 6 69PASS foo(a, b, c) is 6 70PASS foo(a, b, c) is 6 71PASS foo(a, b, c) is 6 72PASS foo(a, b, c) is 6 73PASS foo(a, b, c) is 6 74PASS foo(a, b, c) is 6 75PASS foo(a, b, c) is 6 76PASS foo(a, b, c) is 6 77PASS foo(a, b, c) is 6 78PASS foo(a, b, c) is 6 79PASS foo(a, b, c) is 6 80PASS foo(a, b, c) is 6 81PASS foo(a, b, c) is 6 82PASS foo(a, b, c) is 6 83PASS foo(a, b, c) is 6 84PASS foo(a, b, c) is 6 85PASS foo(a, b, c) is 6 86PASS foo(a, b, c) is 6 87PASS foo(a, b, c) is 6 88PASS foo(a, b, c) is 6 89PASS foo(a, b, c) is 6 90PASS foo(a, b, c) is 6 91PASS foo(a, b, c) is 6 92PASS foo(a, b, c) is 6 93PASS foo(a, b, c) is 6 94PASS foo(a, b, c) is 6 95PASS foo(a, b, c) is 6 96PASS foo(a, b, c) is 6 97PASS foo(a, b, c) is 6 98PASS foo(a, b, c) is 6 99PASS foo(a, b, c) is 6 100PASS foo(a, b, c) is 6 101PASS foo(a, b, c) is 6 102PASS foo(a, b, c) is 6 103PASS foo(a, b, c) is 6 104PASS foo(a, b, c) is 6 105PASS foo(a, b, c) is 6 106PASS foo(a, b, c) is 6 107PASS foo(a, b, c) is 6 108PASS foo(a, b, c) is 6 109PASS foo(a, b, c) is 6 110PASS foo(a, b, c) is 6 111PASS foo(a, b, c) is 6 112PASS foo(a, b, c) is 6 113PASS foo(a, b, c) is 6 114PASS foo(a, b, c) is 6 115PASS foo(a, b, c) is 6 116PASS foo(a, b, c) is 6 117PASS foo(a, b, c) is 6 118PASS foo(a, b, c) is 6 119PASS foo(a, b, c) is 6 120PASS foo(a, b, c) is 6 121PASS foo(a, b, c) is 6 122PASS foo(a, b, c) is 6 123PASS foo(a, b, c) is 6 124PASS foo(a, b, c) is 6 125PASS foo(a, b, c) is 6 126PASS foo(a, b, c) is 6 127PASS foo(a, b, c) is 6 128PASS foo(a, b, c) is 6 129PASS foo(a, b, c) is 6 130PASS foo(a, b, c) is 6 131PASS foo(a, b, c) is 6 132PASS foo(a, b, c) is 6 133PASS foo(a, b, c) is 6 134PASS foo(a, b, c) is 6 135PASS foo(a, b, c) is 6 136PASS foo(a, b, c) is 6 137PASS foo(a, b, c) is 6 138PASS foo(a, b, c) is 6 139PASS foo(a, b, c) is 6 140PASS foo(a, b, c) is 6 141PASS foo(a, b, c) is 6 142PASS foo(a, b, c) is 6 143PASS foo(a, b, c) is 6 144PASS foo(a, b, c) is 6 145PASS foo(a, b, c) is 6 146PASS foo(a, b, c) is 6 147PASS foo(a, b, c) is 6 148PASS foo(a, b, c) is 6 149PASS foo(a, b, c) is 6 150PASS foo(a, b, c) is 6 151PASS foo(a, b, c) is 6 152PASS foo(a, b, c) is 6 153PASS foo(a, b, c) is 6 154PASS foo(a, b, c) is 6 155PASS foo(a, b, c) is 6 156PASS foo(a, b, c) is 6 157PASS foo(a, b, c) is 6 158PASS foo(a, b, c) is 6 159PASS foo(a, b, c) is 6 160PASS foo(a, b, c) is 6 161PASS foo(a, b, c) is 6 162PASS foo(a, b, c) is 6 163PASS foo(a, b, c) is 6 164PASS foo(a, b, c) is 6 165PASS foo(a, b, c) is 6 166PASS foo(a, b, c) is 6 167PASS foo(a, b, c) is 6 168PASS foo(a, b, c) is 6 169PASS foo(a, b, c) is 6 170PASS foo(a, b, c) is 6 171PASS foo(a, b, c) is 6 172PASS foo(a, b, c) is 6 173PASS foo(a, b, c) is 6 174PASS foo(a, b, c) is 6 175PASS foo(a, b, c) is 6 176PASS foo(a, b, c) is 6 177PASS foo(a, b, c) is 6 178PASS foo(a, b, c) is 6 179PASS foo(a, b, c) is 6 180PASS foo(a, b, c) is 6 181PASS foo(a, b, c) is 6 182PASS foo(a, b, c) is 6 183PASS foo(a, b, c) is 6 184PASS foo(a, b, c) is 6 185PASS foo(a, b, c) is 6 186PASS foo(a, b, c) is 6 187PASS foo(a, b, c) is 6 188PASS foo(a, b, c) is 6 189PASS foo(a, b, c) is 6 190PASS foo(a, b, c) is 6 191PASS foo(a, b, c) is 6 192PASS foo(a, b, c) is 6 193PASS foo(a, b, c) is 6 194PASS foo(a, b, c) is 6 195PASS foo(a, b, c) is 6 196PASS foo(a, b, c) is 6 197PASS foo(a, b, c) is 6 198PASS foo(a, b, c) is 6 199PASS foo(a, b, c) is 6 200PASS foo(a, b, c) is 6 201PASS foo(a, b, c) is 6 202PASS foo(a, b, c) is 6 203PASS foo(a, b, c) is 6 204PASS foo(a, b, c) is 6 205PASS foo(a, b, c) is 6 206PASS foo(a, b, c) is 6 207PASS foo(a, b, c) is 6 208PASS foo(a, b, c) is 6 209PASS foo(a, b, c) is 6 210PASS foo(a, b, c) is 6 211PASS foo(a, b, c) is 6 212PASS foo(a, b, c) is 6 213PASS foo(a, b, c) is 6 214PASS foo(a, b, c) is 6 215PASS foo(a, b, c) is 6 216PASS foo(a, b, c) is 6 217PASS foo(a, b, c) is 6 218PASS foo(a, b, c) is 6 219PASS foo(a, b, c) is 6 220PASS foo(a, b, c) is 6 221PASS foo(a, b, c) is 6 222PASS foo(a, b, c) is 6 223PASS foo(a, b, c) is 6 224PASS foo(a, b, c) is 6 225PASS foo(a, b, c) is 6 226PASS foo(a, b, c) is 6 227PASS foo(a, b, c) is 6 228PASS foo(a, b, c) is 6 229PASS foo(a, b, c) is 6 230PASS foo(a, b, c) is 6 231PASS foo(a, b, c) is 6 232PASS foo(a, b, c) is 6 233PASS foo(a, b, c) is 6 234PASS foo(a, b, c) is 6 235PASS foo(a, b, c) is 6 236PASS foo(a, b, c) is 6 237PASS foo(a, b, c) is 6 238PASS foo(a, b, c) is 6 239PASS foo(a, b, c) is 6 240PASS foo(a, b, c) is 6 241PASS foo(a, b, c) is 6 242PASS foo(a, b, c) is 6 243PASS foo(a, b, c) is 6 244PASS foo(a, b, c) is 6 245PASS foo(a, b, c) is 6 246PASS foo(a, b, c) is 6 247PASS foo(a, b, c) is 6 248PASS foo(a, b, c) is 6 249PASS foo(a, b, c) is 6 250PASS foo(a, b, c) is 6 251PASS foo(a, b, c) is 6 252PASS foo(a, b, c) is 6 253PASS foo(a, b, c) is 6 254PASS foo(a, b, c) is 6 255PASS foo(a, b, c) is 6 256PASS foo(a, b, c) is 6 257PASS foo(a, b, c) is 6 258PASS foo(a, b, c) is 6 259PASS foo(a, b, c) is 6 260PASS foo(a, b, c) is 6 261PASS foo(a, b, c) is 6 262PASS foo(a, b, c) is 6 263PASS foo(a, b, c) is 6 264PASS foo(a, b, c) is 6 265PASS foo(a, b, c) is 6 266PASS foo(a, b, c) is 6 267PASS foo(a, b, c) is 6 268PASS foo(a, b, c) is 6 269PASS foo(a, b, c) is 6 270PASS foo(a, b, c) is 6 271PASS foo(a, b, c) is 6 272PASS foo(a, b, c) is 6 273PASS foo(a, b, c) is 6 274PASS foo(a, b, c) is 6 275PASS foo(a, b, c) is 6 276PASS foo(a, b, c) is 6 277PASS foo(a, b, c) is 6 278PASS foo(a, b, c) is 6 279PASS foo(a, b, c) is 6 280PASS foo(a, b, c) is 6 281PASS foo(a, b, c) is 6 282PASS foo(a, b, c) is 6 283PASS foo(a, b, c) is 6 284PASS foo(a, b, c) is 6 285PASS foo(a, b, c) is 6 286PASS foo(a, b, c) is 6 287PASS foo(a, b, c) is 6 288PASS foo(a, b, c) is 6 289PASS foo(a, b, c) is 6 290PASS foo(a, b, c) is 6 291PASS foo(a, b, c) is 6 292PASS foo(a, b, c) is 6 293PASS foo(a, b, c) is 6 294PASS foo(a, b, c) is 6 295PASS foo(a, b, c) is 6 296PASS foo(a, b, c) is 6 297PASS foo(a, b, c) is 6 298PASS foo(a, b, c) is 6 299PASS foo(a, b, c) is 6 300PASS foo(a, b, c) is 6 301PASS foo(a, b, c) is 6 302PASS foo(a, b, c) is 6 303PASS foo(a, b, c) is 6 304PASS foo(a, b, c) is 6 305PASS foo(a, b, c) is 6 306PASS foo(a, b, c) is 6 307PASS foo(a, b, c) is 6 308PASS foo(a, b, c) is 6 309PASS foo(a, b, c) is 6 310PASS foo(a, b, c) is 6 311PASS foo(a, b, c) is 6 312PASS foo(a, b, c) is 6 313PASS foo(a, b, c) is 6 314PASS foo(a, b, c) is 6 315PASS foo(a, b, c) is 6 316PASS foo(a, b, c) is 6 317PASS foo(a, b, c) is 6 318PASS foo(a, b, c) is 6 319PASS foo(a, b, c) is 6 320PASS foo(a, b, c) is 6 321PASS foo(a, b, c) is 6 322PASS foo(a, b, c) is 6 323PASS foo(a, b, c) is 6 324PASS foo(a, b, c) is 6 325PASS foo(a, b, c) is 6 326PASS foo(a, b, c) is 6 327PASS foo(a, b, c) is 6 328PASS foo(a, b, c) is 6 329PASS successfullyParsed is true 330 331TEST COMPLETE 332 333