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