Ignore:
Timestamp:
Jun 8, 2015, 8:56:35 PM (11 years ago)
Author:
Peter A. Buhr <pabuhr@…>
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
Message:

fix constant types, remove unnecessary string copying, work on regression testing, fix several memory leaks

Location:
src/Tests/SynTree/Expected-SymTab
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • src/Tests/SynTree/Expected-SymTab/Array.tst

    rcd623a4 r5f2f2d7  
    55Adding object m2
    66Adding object m4
    7 Adding typedef T
    8 --- Entering scope
    9 --- Leaving scope containing
    107Adding function fred
    118--- Entering scope
     
    1613Adding object T
    1714--- Leaving scope containing
    18 T (__T__A0i) (2)
    19 a1 (__a1__A0i) (2)
    20 a2 (__a2__A0i) (2)
    21 a4 (__a4__A0i) (2)
    2215--- Leaving scope containing
    2316Adding function mary
     
    3023--- Leaving scope containing
    3124--- Leaving scope containing
    32 T (__T__Pi) (1)
    33 p1 (__p1__CPi) (1)
    34 p2 (__p2__Pi) (1)
    35 p3 (__p3__CPi) (1)
    3625Adding function tom
    3726--- Entering scope
     
    4837--- Leaving scope containing
    4938--- 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_q
    21--- Entering scope
    3 Adding type T
    42--- Entering scope
    53--- Leaving scope containing
     4Adding type T
    65Adding function q
    76--- Entering scope
    87--- Leaving scope containing
    98--- Leaving scope containing
    10 q (__q__F_2tT_2tT_) (1)
    119T
     10Adding context has_q
    1211Adding function f
    1312--- Entering scope
    14 Adding type z
    1513--- Entering scope
    1614--- Leaving scope containing
    17 Adding function q
     15Adding type z
     16Adding function ?=?
    1817--- Entering scope
    1918--- Leaving scope containing
    2019--- Entering scope
    21 Adding context has_r
    2220--- Entering scope
     21--- Entering scope
     22--- Leaving scope containing
    2323Adding type T
    2424--- Entering scope
    2525--- Leaving scope containing
    2626Adding type U
    27 --- Entering scope
    28 --- Leaving scope containing
    2927Adding function r
    3028--- Entering scope
    3129--- Leaving scope containing
    3230--- Leaving scope containing
    33 r (__r__F_2tT_2tTPF_2tT_2tT2tU__) (3)
    3431T
    3532U
     33Adding context has_r
     34--- Entering scope
     35--- Leaving scope containing
    3636Adding type x
    3737--- Entering scope
    3838--- Leaving scope containing
    3939Adding type y
    40 --- Entering scope
    4140--- Leaving scope containing
    42 Adding function r
    43 --- Entering scope
    44 --- Leaving scope containing
    45 --- Leaving scope containing
    46 r (__r__F_2tx_2txPF_2tx_2tx2ty__) (2)
    4741x
    4842y
    4943has_r
    5044--- Leaving scope containing
    51 q (__q__F_2tz_2tz_) (1)
    5245z
  • src/Tests/SynTree/Expected-SymTab/Enum.tst

    rcd623a4 r5f2f2d7  
    1717Adding object fruit
    1818--- 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)
    2419Fruits
    2520--- 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
     1Adding function swap
    42--- Entering scope
    5 Adding type T
    63--- Entering scope
    74--- Leaving scope containing
    8 --- Leaving scope containing
    9 T
    10 Adding function swap
    11 --- Entering scope
    125Adding type T
     6Adding function ?=?
    137--- Entering scope
    148--- Leaving scope containing
     
    1812Adding object temp
    1913--- Leaving scope containing
    20 temp (__temp__2tT) (2)
    2114--- Leaving scope containing
    22 left (__left__2tT) (1)
    23 right (__right__2tT) (1)
    2415T
    25 Adding context sumable
    2616--- Entering scope
    27 Adding type T
    2817--- Entering scope
    2918--- Leaving scope containing
     19Adding type T
    3020Adding object 0
    3121Adding function ?+?
     
    3929--- Leaving scope containing
    4030--- Leaving scope containing
    41 0 (__0__C2tT) (1)
    42 ?++ (__?++__F_2tT_2tT_) (1)
    43 ?+=? (__?+=?__F_2tT_2tT2tT_) (1)
    44 ?+? (__?+?__F_2tT_2tT2tT_) (1)
    4531T
    46 Adding type T1
     32Adding context sumable
    4733--- Entering scope
    4834--- Leaving scope containing
     35Adding type T1
    4936Adding object 0
    5037Adding function ?+?
     
    5744--- Entering scope
    5845--- Leaving scope containing
     46--- Entering scope
     47--- Entering scope
     48--- Leaving scope containing
     49Adding type P1
     50--- Entering scope
     51--- Leaving scope containing
     52Adding type P2
     53--- Leaving scope containing
     54P1
     55P2
    5956Adding type T2
    6057--- Entering scope
     58--- Leaving scope containing
     59Adding type T3
     60Adding fwd decl for struct __anonymous0
     61--- Entering scope
     62Adding object i
     63Adding object j
     64--- Leaving scope containing
     65Adding struct __anonymous0
     66--- Entering scope
     67--- Entering scope
     68--- Leaving scope containing
    6169Adding type P1
    6270--- Entering scope
     
    6876P1
    6977P2
    70 Adding type T3
     78Adding type T2
     79Adding object w1
     80Adding object g2
    7181--- Entering scope
    7282--- Leaving scope containing
    73 Adding object 0
    74 Adding function ?+?
    75 --- Entering scope
    76 --- Leaving scope containing
    77 Adding function ?++
    78 --- Entering scope
    79 --- Leaving scope containing
    80 Adding function ?+=?
    81 --- Entering scope
    82 --- Leaving scope containing
    83 Adding struct __anonymous0
    84 --- Entering scope
    85 Adding object i
    86 Adding object j
    87 --- Leaving scope containing
    88 i (__i__3tP1) (1)
    89 j (__j__3tP2) (1)
    90 Adding type T2
    91 --- Entering scope
    92 Adding type P1
    93 --- Entering scope
    94 --- Leaving scope containing
    95 Adding type P2
    96 --- Entering scope
    97 --- Leaving scope containing
    98 --- Leaving scope containing
    99 P1
    100 P2
    101 Adding object 0
    102 Adding function ?+?
    103 --- Entering scope
    104 --- Leaving scope containing
    105 Adding function ?++
    106 --- Entering scope
    107 --- Leaving scope containing
    108 Adding function ?+=?
    109 --- Entering scope
    110 --- Leaving scope containing
    111 Adding object w1
    112 Adding typedef w2
    113 --- Entering scope
    114 --- Leaving scope containing
    115 Adding object g2
    11683Adding type w3
    117 --- Entering scope
    118 --- Leaving scope containing
    11984Adding object g3
    12085Adding function sum
    12186--- Entering scope
    122 Adding type T
    12387--- Entering scope
    12488--- 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 ?+=?
     89Adding type T
     90Adding function ?=?
    13391--- Entering scope
    13492--- Leaving scope containing
     
    13896Adding object total
    13997Adding object i
     98--- Entering scope
    14099--- Leaving scope containing
    141 i (__i__i) (2)
    142 total (__total__2tT) (2)
    143100--- 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
    150102T
    151103Adding function twice
    152104--- Entering scope
     105--- Entering scope
     106--- Leaving scope containing
    153107Adding type T
     108Adding function ?=?
    154109--- Entering scope
    155110--- Leaving scope containing
     
    168123--- Leaving scope containing
    169124--- 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)
    175125T
    176126Adding function main
     
    182132Adding object f
    183133--- Leaving scope containing
    184 a (__a__A0i) (2)
    185 f (__f__f) (2)
    186 x (__x__i) (2)
    187 y (__y__i) (2)
    188134--- 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)
    41Adding object x
    5 Adding typedef y
    6 --- Entering scope
    7 --- Leaving scope containing
    8 Adding typedef t
    9 --- Entering scope
    10 --- Leaving scope containing
    112Adding object z
    12 Adding struct __anonymous0
     3Adding fwd decl for struct __anonymous0
    134--- Entering scope
    145Adding object a
    156Adding object b
    167--- Leaving scope containing
    17 a (__a__i) (1)
    18 b (__b__d) (1)
    19 Adding type u
     8Adding struct __anonymous0
     9--- Entering scope
    2010--- Entering scope
    2111--- Leaving scope containing
     12--- Leaving scope containing
     13Adding type u
    2214Adding function f
    2315--- Entering scope
    2416Adding object y
    2517--- Leaving scope containing
    26 y (__y__i) (1)
    2718Adding object q
    2819Adding function w
     
    3122Adding object v
    3223--- Entering scope
    33 Adding type x
    3424--- Entering scope
    3525--- Leaving scope containing
     26Adding type x
    3627Adding function t
    3728--- Entering scope
     
    4031Adding object z
    4132--- Leaving scope containing
    42 t (__t__F_2tx_2tu_) (2)
    43 u (__u__2tu) (2)
    44 z (__z__2tx) (2)
    4533x
    4634--- Leaving scope containing
    47 v (__v__2tu) (1)
    48 y (__y__2ty) (1)
    4935Adding object p
    50 Adding context has_u
    5136--- Entering scope
    52 Adding type z
    5337--- Entering scope
    5438--- Leaving scope containing
     39Adding type z
    5540Adding function u
    5641--- Entering scope
    5742--- Leaving scope containing
    5843--- Leaving scope containing
    59 u (__u__F_2tz_2tz_) (1)
    6044z
     45Adding context has_u
    6146Adding function q
    6247--- Entering scope
    63 Adding type t
    6448--- Entering scope
    6549--- Leaving scope containing
    66 Adding function u
     50Adding type t
     51Adding function ?=?
    6752--- Entering scope
    6853--- Leaving scope containing
     
    7156Adding object y
    7257--- Leaving scope containing
    73 y (__y__2tt) (2)
    7458--- Leaving scope containing
    75 the_t (__the_t__2tt) (1)
    76 u (__u__F_2tt_2tt_) (1)
    7759t
    7860Adding function f
     
    8163--- Entering scope
    8264Adding object y
    83 Adding typedef x
     65--- Entering scope
     66Adding object y
     67--- Entering scope
     68Adding object x
     69Adding object z
     70--- Leaving scope containing
     71Adding object x
     72--- Leaving scope containing
     73Adding object q
     74--- Leaving scope containing
     75--- Leaving scope containing
     76Adding function g
     77--- Entering scope
     78--- Entering scope
    8479--- Entering scope
    8580--- Leaving scope containing
     81Adding object x
    8682--- Entering scope
    8783Adding object y
    88 Adding typedef z
    89 --- Entering scope
    90 --- Leaving scope containing
    91 --- Entering scope
    92 Adding object x
    93 Adding typedef y
    94 --- Entering scope
    9584--- Leaving scope containing
    9685Adding object z
    9786--- Leaving scope containing
    98 x (__x__2tz) (4)
    99 z (__z__2ty) (4)
    100 y
    101 Adding object x
    102 --- Leaving scope containing
    103 x (__x__2tz) (3)
    104 y (__y__2tx) (3)
    105 z
    106 Adding object q
    107 --- Leaving scope containing
    108 q (__q__2tx) (2)
    109 y (__y__i) (2)
    110 x
    111 --- Leaving scope containing
    112 p (__p__2ty) (1)
    113 Adding function g
    114 --- Entering scope
    115 --- Entering scope
    116 Adding typedef x
    117 --- Entering scope
    118 --- Leaving scope containing
    119 Adding object z
    120 --- Leaving scope containing
    121 z (__z__2tx) (2)
    122 x
    12387--- Leaving scope containing
    12488Adding function q
     
    12892--- Leaving scope containing
    12993--- Leaving scope containing
    130 i (__i__i) (1)
  • src/Tests/SynTree/Expected-SymTab/ScopeErrors.tst

    rcd623a4 r5f2f2d7  
    88Adding object thisIsNotAnError
    99--- Leaving scope containing
    10 thisIsNotAnError (__thisIsNotAnError__i) (2)
    1110--- Leaving scope containing
    1211Adding function thisIsAlsoNotAnError
     
    1615--- Leaving scope containing
    1716--- Leaving scope containing
    18 x (__x__d) (1)
    1917Adding function thisIsStillNotAnError
    2018--- Entering scope
     
    2927--- Leaving scope containing
    3028Adding function butThisIsAnError
    31 Error: duplicate definition for thisIsAnError: a signed int
    32 Error: duplicate function definition for butThisIsAnError: a function
     29Error: duplicate function definition for butThisIsAnError: function
    3330  with parameters
    3431    double
     
    3633    double
    3734  with body
     35    CompoundStmt
    3836
  • src/Tests/SynTree/Expected-SymTab/Tuple.tst

    rcd623a4 r5f2f2d7  
    1212Adding object d
    1313--- 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
     14Adding fwd decl for struct inner
    1915--- Entering scope
    2016Adding object f2
    2117Adding object f3
    2218--- Leaving scope containing
    23 f2 (__f2__i) (1)
    24 f3 (__f3__i) (1)
    25 Adding struct outer
     19Adding struct inner
     20Adding fwd decl for struct outer
    2621--- Entering scope
    2722Adding object f1
     23--- Entering scope
     24--- Leaving scope containing
    2825Adding object i
    2926Adding object f4
    3027--- Leaving scope containing
    31 f1 (__f1__i) (1)
    32 f4 (__f4__d) (1)
    33 i (__i__6sinner) (1)
     28Adding struct outer
     29--- Entering scope
     30--- Leaving scope containing
    3431Adding object s
     32--- Entering scope
     33--- Leaving scope containing
    3534Adding object sp
    3635Adding object t1
     
    4241Adding object fmt
    4342--- Leaving scope containing
    44 fmt (__fmt__Pc) (1)
    45 rc (__rc__i) (1)
    4643Adding function printf
    4744--- Entering scope
    4845Adding object fmt
    4946--- Leaving scope containing
    50 fmt (__fmt__Pc) (1)
    5147Adding function f1
    5248--- Entering scope
     
    5753--- Leaving scope containing
    5854--- Leaving scope containing
    59 w (__w__i) (1)
    60 x (__x__s) (1)
    61 y (__y__Ui) (1)
    6255Adding function g1
    6356--- Entering scope
     
    6962Adding object z
    7063--- Leaving scope containing
    71 p (__p__s) (2)
    72 x (__x__s) (2)
    73 y (__y__Ui) (2)
    74 z (__z__Tii_) (2)
    7564--- Leaving scope containing
    76 r (__r__Ticli_) (1)
    7765Adding function main
    7866--- Entering scope
     
    8573Adding object c
    8674Adding object d
     75--- Entering scope
     76--- Leaving scope containing
    8777Adding object t
    8878--- 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)
    9479--- 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.