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