Changeset 5f2f2d7 for src/Tests/SynTree/Expected-SymTab
- Timestamp:
- Jun 8, 2015, 8:56:35 PM (11 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- 81419b5
- Parents:
- cd623a4
- Location:
- src/Tests/SynTree/Expected-SymTab
- Files:
-
- 7 edited
-
Array.tst (modified) (4 diffs)
-
Context.tst (modified) (1 diff)
-
Enum.tst (modified) (1 diff)
-
Forall.tst (modified) (8 diffs)
-
Scope.tst (modified) (6 diffs)
-
ScopeErrors.tst (modified) (4 diffs)
-
Tuple.tst (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Tests/SynTree/Expected-SymTab/Array.tst
rcd623a4 r5f2f2d7 5 5 Adding object m2 6 6 Adding object m4 7 Adding typedef T8 --- Entering scope9 --- Leaving scope containing10 7 Adding function fred 11 8 --- Entering scope … … 16 13 Adding object T 17 14 --- Leaving scope containing 18 T (__T__A0i) (2)19 a1 (__a1__A0i) (2)20 a2 (__a2__A0i) (2)21 a4 (__a4__A0i) (2)22 15 --- Leaving scope containing 23 16 Adding function mary … … 30 23 --- Leaving scope containing 31 24 --- Leaving scope containing 32 T (__T__Pi) (1)33 p1 (__p1__CPi) (1)34 p2 (__p2__Pi) (1)35 p3 (__p3__CPi) (1)36 25 Adding function tom 37 26 --- Entering scope … … 48 37 --- Leaving scope containing 49 38 --- Leaving scope containing 50 T (__T__Pi) (1)51 p1 (__p1__CPi) (1)52 p2 (__p2__Pi) (1)53 p3 (__p3__CPi) (1) -
src/Tests/SynTree/Expected-SymTab/Context.tst
rcd623a4 r5f2f2d7 1 Adding context has_q2 1 --- Entering scope 3 Adding type T4 2 --- Entering scope 5 3 --- Leaving scope containing 4 Adding type T 6 5 Adding function q 7 6 --- Entering scope 8 7 --- Leaving scope containing 9 8 --- Leaving scope containing 10 q (__q__F_2tT_2tT_) (1)11 9 T 10 Adding context has_q 12 11 Adding function f 13 12 --- Entering scope 14 Adding type z15 13 --- Entering scope 16 14 --- Leaving scope containing 17 Adding function q 15 Adding type z 16 Adding function ?=? 18 17 --- Entering scope 19 18 --- Leaving scope containing 20 19 --- Entering scope 21 Adding context has_r22 20 --- Entering scope 21 --- Entering scope 22 --- Leaving scope containing 23 23 Adding type T 24 24 --- Entering scope 25 25 --- Leaving scope containing 26 26 Adding type U 27 --- Entering scope28 --- Leaving scope containing29 27 Adding function r 30 28 --- Entering scope 31 29 --- Leaving scope containing 32 30 --- Leaving scope containing 33 r (__r__F_2tT_2tTPF_2tT_2tT2tU__) (3)34 31 T 35 32 U 33 Adding context has_r 34 --- Entering scope 35 --- Leaving scope containing 36 36 Adding type x 37 37 --- Entering scope 38 38 --- Leaving scope containing 39 39 Adding type y 40 --- Entering scope41 40 --- Leaving scope containing 42 Adding function r43 --- Entering scope44 --- Leaving scope containing45 --- Leaving scope containing46 r (__r__F_2tx_2txPF_2tx_2tx2ty__) (2)47 41 x 48 42 y 49 43 has_r 50 44 --- Leaving scope containing 51 q (__q__F_2tz_2tz_) (1)52 45 z -
src/Tests/SynTree/Expected-SymTab/Enum.tst
rcd623a4 r5f2f2d7 17 17 Adding object fruit 18 18 --- Leaving scope containing 19 Apple (__Apple__C7eFruits) (2)20 Banana (__Banana__C7eFruits) (2)21 Mango (__Mango__C7eFruits) (2)22 Pear (__Pear__C7eFruits) (2)23 fruit (__fruit__7eFruits) (2)24 19 Fruits 25 20 --- Leaving scope containing -
src/Tests/SynTree/Expected-SymTab/Forall.tst
rcd623a4 r5f2f2d7 1 in default case, (shouldn't be here) 2 in default case, (shouldn't be here) 3 Adding typedef f 1 Adding function swap 4 2 --- Entering scope 5 Adding type T6 3 --- Entering scope 7 4 --- Leaving scope containing 8 --- Leaving scope containing9 T10 Adding function swap11 --- Entering scope12 5 Adding type T 6 Adding function ?=? 13 7 --- Entering scope 14 8 --- Leaving scope containing … … 18 12 Adding object temp 19 13 --- Leaving scope containing 20 temp (__temp__2tT) (2)21 14 --- Leaving scope containing 22 left (__left__2tT) (1)23 right (__right__2tT) (1)24 15 T 25 Adding context sumable26 16 --- Entering scope 27 Adding type T28 17 --- Entering scope 29 18 --- Leaving scope containing 19 Adding type T 30 20 Adding object 0 31 21 Adding function ?+? … … 39 29 --- Leaving scope containing 40 30 --- Leaving scope containing 41 0 (__0__C2tT) (1)42 ?++ (__?++__F_2tT_2tT_) (1)43 ?+=? (__?+=?__F_2tT_2tT2tT_) (1)44 ?+? (__?+?__F_2tT_2tT2tT_) (1)45 31 T 46 Adding type T132 Adding context sumable 47 33 --- Entering scope 48 34 --- Leaving scope containing 35 Adding type T1 49 36 Adding object 0 50 37 Adding function ?+? … … 57 44 --- Entering scope 58 45 --- Leaving scope containing 46 --- Entering scope 47 --- Entering scope 48 --- Leaving scope containing 49 Adding type P1 50 --- Entering scope 51 --- Leaving scope containing 52 Adding type P2 53 --- Leaving scope containing 54 P1 55 P2 59 56 Adding type T2 60 57 --- Entering scope 58 --- Leaving scope containing 59 Adding type T3 60 Adding fwd decl for struct __anonymous0 61 --- Entering scope 62 Adding object i 63 Adding object j 64 --- Leaving scope containing 65 Adding struct __anonymous0 66 --- Entering scope 67 --- Entering scope 68 --- Leaving scope containing 61 69 Adding type P1 62 70 --- Entering scope … … 68 76 P1 69 77 P2 70 Adding type T3 78 Adding type T2 79 Adding object w1 80 Adding object g2 71 81 --- Entering scope 72 82 --- Leaving scope containing 73 Adding object 074 Adding function ?+?75 --- Entering scope76 --- Leaving scope containing77 Adding function ?++78 --- Entering scope79 --- Leaving scope containing80 Adding function ?+=?81 --- Entering scope82 --- Leaving scope containing83 Adding struct __anonymous084 --- Entering scope85 Adding object i86 Adding object j87 --- Leaving scope containing88 i (__i__3tP1) (1)89 j (__j__3tP2) (1)90 Adding type T291 --- Entering scope92 Adding type P193 --- Entering scope94 --- Leaving scope containing95 Adding type P296 --- Entering scope97 --- Leaving scope containing98 --- Leaving scope containing99 P1100 P2101 Adding object 0102 Adding function ?+?103 --- Entering scope104 --- Leaving scope containing105 Adding function ?++106 --- Entering scope107 --- Leaving scope containing108 Adding function ?+=?109 --- Entering scope110 --- Leaving scope containing111 Adding object w1112 Adding typedef w2113 --- Entering scope114 --- Leaving scope containing115 Adding object g2116 83 Adding type w3 117 --- Entering scope118 --- Leaving scope containing119 84 Adding object g3 120 85 Adding function sum 121 86 --- Entering scope 122 Adding type T123 87 --- Entering scope 124 88 --- Leaving scope containing 125 Adding object 0 126 Adding function ?+? 127 --- Entering scope 128 --- Leaving scope containing 129 Adding function ?++ 130 --- Entering scope 131 --- Leaving scope containing 132 Adding function ?+=? 89 Adding type T 90 Adding function ?=? 133 91 --- Entering scope 134 92 --- Leaving scope containing … … 138 96 Adding object total 139 97 Adding object i 98 --- Entering scope 140 99 --- Leaving scope containing 141 i (__i__i) (2)142 total (__total__2tT) (2)143 100 --- Leaving scope containing 144 0 (__0__2tT) (1) 145 ?++ (__?++__F_2tT_2tT_) (1) 146 ?+=? (__?+=?__F_2tT_2tT2tT_) (1) 147 ?+? (__?+?__F_2tT_2tT2tT_) (1) 148 a (__a__P2tT) (1) 149 n (__n__i) (1) 101 --- Leaving scope containing 150 102 T 151 103 Adding function twice 152 104 --- Entering scope 105 --- Entering scope 106 --- Leaving scope containing 153 107 Adding type T 108 Adding function ?=? 154 109 --- Entering scope 155 110 --- Leaving scope containing … … 168 123 --- Leaving scope containing 169 124 --- Leaving scope containing 170 0 (__0__C2tT) (1)171 ?++ (__?++__F_2tT_2tT_) (1)172 ?+=? (__?+=?__F_2tT_2tT2tT_) (1)173 ?+? (__?+?__F_2tT_2tT2tT_) (1)174 t (__t__2tT) (1)175 125 T 176 126 Adding function main … … 182 132 Adding object f 183 133 --- Leaving scope containing 184 a (__a__A0i) (2)185 f (__f__f) (2)186 x (__x__i) (2)187 y (__y__i) (2)188 134 --- Leaving scope containing -
src/Tests/SynTree/Expected-SymTab/Scope.tst
rcd623a4 r5f2f2d7 1 in default case, (shouldn't be here)2 in default case, (shouldn't be here)3 in default case, (shouldn't be here)4 1 Adding object x 5 Adding typedef y6 --- Entering scope7 --- Leaving scope containing8 Adding typedef t9 --- Entering scope10 --- Leaving scope containing11 2 Adding object z 12 Adding struct __anonymous03 Adding fwd decl for struct __anonymous0 13 4 --- Entering scope 14 5 Adding object a 15 6 Adding object b 16 7 --- Leaving scope containing 17 a (__a__i) (1) 18 b (__b__d) (1) 19 Adding type u 8 Adding struct __anonymous0 9 --- Entering scope 20 10 --- Entering scope 21 11 --- Leaving scope containing 12 --- Leaving scope containing 13 Adding type u 22 14 Adding function f 23 15 --- Entering scope 24 16 Adding object y 25 17 --- Leaving scope containing 26 y (__y__i) (1)27 18 Adding object q 28 19 Adding function w … … 31 22 Adding object v 32 23 --- Entering scope 33 Adding type x34 24 --- Entering scope 35 25 --- Leaving scope containing 26 Adding type x 36 27 Adding function t 37 28 --- Entering scope … … 40 31 Adding object z 41 32 --- Leaving scope containing 42 t (__t__F_2tx_2tu_) (2)43 u (__u__2tu) (2)44 z (__z__2tx) (2)45 33 x 46 34 --- Leaving scope containing 47 v (__v__2tu) (1)48 y (__y__2ty) (1)49 35 Adding object p 50 Adding context has_u51 36 --- Entering scope 52 Adding type z53 37 --- Entering scope 54 38 --- Leaving scope containing 39 Adding type z 55 40 Adding function u 56 41 --- Entering scope 57 42 --- Leaving scope containing 58 43 --- Leaving scope containing 59 u (__u__F_2tz_2tz_) (1)60 44 z 45 Adding context has_u 61 46 Adding function q 62 47 --- Entering scope 63 Adding type t64 48 --- Entering scope 65 49 --- Leaving scope containing 66 Adding function u 50 Adding type t 51 Adding function ?=? 67 52 --- Entering scope 68 53 --- Leaving scope containing … … 71 56 Adding object y 72 57 --- Leaving scope containing 73 y (__y__2tt) (2)74 58 --- Leaving scope containing 75 the_t (__the_t__2tt) (1)76 u (__u__F_2tt_2tt_) (1)77 59 t 78 60 Adding function f … … 81 63 --- Entering scope 82 64 Adding object y 83 Adding typedef x 65 --- Entering scope 66 Adding object y 67 --- Entering scope 68 Adding object x 69 Adding object z 70 --- Leaving scope containing 71 Adding object x 72 --- Leaving scope containing 73 Adding object q 74 --- Leaving scope containing 75 --- Leaving scope containing 76 Adding function g 77 --- Entering scope 78 --- Entering scope 84 79 --- Entering scope 85 80 --- Leaving scope containing 81 Adding object x 86 82 --- Entering scope 87 83 Adding object y 88 Adding typedef z89 --- Entering scope90 --- Leaving scope containing91 --- Entering scope92 Adding object x93 Adding typedef y94 --- Entering scope95 84 --- Leaving scope containing 96 85 Adding object z 97 86 --- Leaving scope containing 98 x (__x__2tz) (4)99 z (__z__2ty) (4)100 y101 Adding object x102 --- Leaving scope containing103 x (__x__2tz) (3)104 y (__y__2tx) (3)105 z106 Adding object q107 --- Leaving scope containing108 q (__q__2tx) (2)109 y (__y__i) (2)110 x111 --- Leaving scope containing112 p (__p__2ty) (1)113 Adding function g114 --- Entering scope115 --- Entering scope116 Adding typedef x117 --- Entering scope118 --- Leaving scope containing119 Adding object z120 --- Leaving scope containing121 z (__z__2tx) (2)122 x123 87 --- Leaving scope containing 124 88 Adding function q … … 128 92 --- Leaving scope containing 129 93 --- Leaving scope containing 130 i (__i__i) (1) -
src/Tests/SynTree/Expected-SymTab/ScopeErrors.tst
rcd623a4 r5f2f2d7 8 8 Adding object thisIsNotAnError 9 9 --- Leaving scope containing 10 thisIsNotAnError (__thisIsNotAnError__i) (2)11 10 --- Leaving scope containing 12 11 Adding function thisIsAlsoNotAnError … … 16 15 --- Leaving scope containing 17 16 --- Leaving scope containing 18 x (__x__d) (1)19 17 Adding function thisIsStillNotAnError 20 18 --- Entering scope … … 29 27 --- Leaving scope containing 30 28 Adding function butThisIsAnError 31 Error: duplicate definition for thisIsAnError: a signed int 32 Error: duplicate function definition for butThisIsAnError: a function 29 Error: duplicate function definition for butThisIsAnError: function 33 30 with parameters 34 31 double … … 36 33 double 37 34 with body 35 CompoundStmt 38 36 -
src/Tests/SynTree/Expected-SymTab/Tuple.tst
rcd623a4 r5f2f2d7 12 12 Adding object d 13 13 --- Leaving scope containing 14 a (__a__i) (1) 15 b (__b__i) (1) 16 c (__c__Pi) (1) 17 d (__d__Pc) (1) 18 Adding struct inner 14 Adding fwd decl for struct inner 19 15 --- Entering scope 20 16 Adding object f2 21 17 Adding object f3 22 18 --- Leaving scope containing 23 f2 (__f2__i) (1) 24 f3 (__f3__i) (1) 25 Adding struct outer 19 Adding struct inner 20 Adding fwd decl for struct outer 26 21 --- Entering scope 27 22 Adding object f1 23 --- Entering scope 24 --- Leaving scope containing 28 25 Adding object i 29 26 Adding object f4 30 27 --- Leaving scope containing 31 f1 (__f1__i) (1) 32 f4 (__f4__d) (1) 33 i (__i__6sinner) (1) 28 Adding struct outer 29 --- Entering scope 30 --- Leaving scope containing 34 31 Adding object s 32 --- Entering scope 33 --- Leaving scope containing 35 34 Adding object sp 36 35 Adding object t1 … … 42 41 Adding object fmt 43 42 --- Leaving scope containing 44 fmt (__fmt__Pc) (1)45 rc (__rc__i) (1)46 43 Adding function printf 47 44 --- Entering scope 48 45 Adding object fmt 49 46 --- Leaving scope containing 50 fmt (__fmt__Pc) (1)51 47 Adding function f1 52 48 --- Entering scope … … 57 53 --- Leaving scope containing 58 54 --- Leaving scope containing 59 w (__w__i) (1)60 x (__x__s) (1)61 y (__y__Ui) (1)62 55 Adding function g1 63 56 --- Entering scope … … 69 62 Adding object z 70 63 --- Leaving scope containing 71 p (__p__s) (2)72 x (__x__s) (2)73 y (__y__Ui) (2)74 z (__z__Tii_) (2)75 64 --- Leaving scope containing 76 r (__r__Ticli_) (1)77 65 Adding function main 78 66 --- Entering scope … … 85 73 Adding object c 86 74 Adding object d 75 --- Entering scope 76 --- Leaving scope containing 87 77 Adding object t 88 78 --- Leaving scope containing 89 a (__a__i) (2)90 b (__b__i) (2)91 c (__c__i) (2)92 d (__d__i) (2)93 t (__t__6souter) (2)94 79 --- Leaving scope containing 95 argc (__argc__i) (1)96 argv (__argv__PPc) (1)97 rc (__rc__i) (1)
Note:
See TracChangeset
for help on using the changeset viewer.