Changeset 937e51d for src/Tests


Ignore:
Timestamp:
Jun 26, 2015, 4:00:26 PM (11 years ago)
Author:
Aaron Moss <a3moss@…>
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:
0df292b, e0ff3e6
Parents:
eb50842 (diff), 1869adf (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge pointer to pointer to qualified fix into master

Location:
src/Tests
Files:
368 added
123 deleted
32 moved

Legend:

Unmodified
Added
Removed
  • src/Tests/Constant0-1.c

    reb50842 r937e51d  
    1111int 0, 1;
    1212const int 0, 1;
     13int (0), (1);
     14int ((0)), ((1));
    1315static const int 0, 1;
    1416struct { int i; } 0;
     
    1820// pointer
    1921
    20 int 1, * 0;
    21 int (1), ((1)), * (0), (* 0), ((* 0));
    22 int * const (0), (* const 0), ((* const 0));
    23 struct { int i; } * 0;
     22int *0, *1;
     23int *(0), *(1);
     24int (*0), (*1);
     25int ((*0)), ((*1));
     26int * const (0), * const 1;
     27int (* const 0), (* const 1);
     28int ((* const 0)), ((* const 1));
     29struct { int i; } *0;
    2430
    2531// Cforall style
     
    3440static const * int x, 0;
    3541const * * int x, 0;
     42
     43int main() {
     44    int 1, * 0;
     45    * int x, 0;
     46}
  • src/Tests/DeclarationErrors.c

    reb50842 r937e51d  
    44typedef int Int;
    55static Int volatile static const x28;                   // duplicate static
     6
     7// Local Variables: //
     8// tab-width: 4 //
     9// End: //
  • src/Tests/DeclarationSpecifier.c

    reb50842 r937e51d  
    8989static const Int inline volatile f48();
    9090
     91// Local Variables: //
     92// tab-width: 4 //
     93// End: //
  • src/Tests/Expect-a/Functions.txt

    reb50842 r937e51d  
    1 h: a function
     1h: function
    22    with parameters
    33      void
     
    55      void
    66    with body
    7 
    8 f: a function
     7      CompoundStmt
     8
     9f: function
    910    with parameters
    1011      function
     
    3233            signed int
    3334
    34       g: a function
     35      g: function
    3536          with parameters
    3637            void
     
    4142      signed int
    4243    with body
    43 
    44 f1: a function
    45     returning
    46       signed int
    47     with body
    48 
    49 f2: a function
    50     returning
    51       signed int
    52     with body
    53 
    54 f3: a function
     44      CompoundStmt
     45                  Expression Statement:
     46            Applying untyped:
     47                Applying untyped:
     48                    Name: *?
     49                ...to:
     50                    Name: g
     51            ...to:
     52
     53                  Expression Statement:
     54            Applying untyped:
     55                Name: g
     56            ...to:
     57
     58                  Expression Statement:
     59            Applying untyped:
     60                Name: ?=?
     61            ...to:
     62                Address of:
     63                  Name: g
     64                Name: h
     65
     66
     67f1: function
     68      accepting unspecified arguments
     69    returning
     70      signed int
     71    with body
     72      CompoundStmt
     73
     74f2: function
     75      accepting unspecified arguments
     76    returning
     77      signed int
     78    with body
     79      CompoundStmt
     80
     81f3: function
     82      accepting unspecified arguments
    5583    returning
    5684      pointer to function
    57           returning
    58             signed int
    59 
    60     with body
    61 
    62 f4: a function
     85            accepting unspecified arguments
     86          returning
     87            signed int
     88
     89    with body
     90      CompoundStmt
     91
     92f4: function
     93      accepting unspecified arguments
    6394    returning
    6495      pointer to signed int
    6596    with body
    66 
    67 f5: a function
     97      CompoundStmt
     98
     99f5: function
     100      accepting unspecified arguments
    68101    returning
    69102      pointer to function
    70           returning
    71             signed int
    72 
    73     with body
    74 
    75 f6: a function
     103            accepting unspecified arguments
     104          returning
     105            signed int
     106
     107    with body
     108      CompoundStmt
     109
     110f6: function
     111      accepting unspecified arguments
    76112    returning
    77113      pointer to signed int
    78114    with body
    79 
    80 f7: a function
     115      CompoundStmt
     116
     117f7: function
     118      accepting unspecified arguments
    81119    returning
    82120      pointer to signed int
    83121    with body
    84 
    85 f8: a function
     122      CompoundStmt
     123
     124f8: function
     125      accepting unspecified arguments
    86126    returning
    87127      pointer to pointer to signed int
    88128    with body
    89 
    90 f9: a function
     129      CompoundStmt
     130
     131f9: function
     132      accepting unspecified arguments
    91133    returning
    92134      pointer to const pointer to signed int
    93135    with body
    94 
    95 f10: a function
     136      CompoundStmt
     137
     138f10: function
     139      accepting unspecified arguments
    96140    returning
    97141      pointer to open array of signed int
    98142    with body
    99 
    100 f11: a function
    101     returning
    102       pointer to open array of open array of signed int
    103     with body
    104 
    105 f12: a function
    106     returning
    107       pointer to open array of open array of signed int
    108     with body
    109 
    110 fII1: a function
    111     with parameters
    112       i: a signed int
    113     returning
    114       signed int
    115     with body
    116 
    117 fII2: a function
    118     with parameters
    119       i: a signed int
     143      CompoundStmt
     144
     145f11: function
     146      accepting unspecified arguments
     147    returning
     148      pointer to open array of array of signed int with dimension of constant expression 3 signed int
     149    with body
     150      CompoundStmt
     151
     152f12: function
     153      accepting unspecified arguments
     154    returning
     155      pointer to open array of array of signed int with dimension of constant expression 3 signed int
     156    with body
     157      CompoundStmt
     158
     159fII1: function
     160    with parameters
     161      i: signed int
     162    returning
     163      signed int
     164    with body
     165      CompoundStmt
     166
     167fII2: function
     168    with parameters
     169      i: signed int
    120170    returning
    121171      const signed int
    122172    with body
    123 
    124 fII3: a extern function
    125     with parameters
    126       i: a signed int
    127     returning
    128       signed int
    129     with body
    130 
    131 fII4: a extern function
    132     with parameters
    133       i: a signed int
     173      CompoundStmt
     174
     175fII3: extern function
     176    with parameters
     177      i: signed int
     178    returning
     179      signed int
     180    with body
     181      CompoundStmt
     182
     183fII4: extern function
     184    with parameters
     185      i: signed int
    134186    returning
    135187      const signed int
    136188    with body
    137 
    138 fII5: a function
     189      CompoundStmt
     190
     191fII5: function
     192      accepting unspecified arguments
    139193    returning
    140194      pointer to signed int
    141195    with body
    142 
    143 fII6: a function
     196      CompoundStmt
     197
     198fII6: function
     199      accepting unspecified arguments
    144200    returning
    145201      const pointer to signed int
    146202    with body
    147 
    148 fII7: a function
     203      CompoundStmt
     204
     205fII7: function
     206      accepting unspecified arguments
    149207    returning
    150208      pointer to const long signed int
    151209    with body
    152 
    153 fII8: a static function
     210      CompoundStmt
     211
     212fII8: static function
     213      accepting unspecified arguments
    154214    returning
    155215      pointer to const long signed int
    156216    with body
    157 
    158 fII9: a static function
     217      CompoundStmt
     218
     219fII9: static function
     220      accepting unspecified arguments
    159221    returning
    160222      pointer to const long signed int
    161223    with body
    162 
    163 fO1: a function
     224      CompoundStmt
     225
     226fO1: function
     227      accepting unspecified arguments
    164228    returning
    165229      signed int
     
    167231      i
    168232    with parameter declarations
    169       i: a signed int
    170     with body
    171 
    172 fO2: a function
     233      i: signed int
     234    with body
     235      CompoundStmt
     236
     237fO2: function
     238      accepting unspecified arguments
    173239    returning
    174240      signed int
     
    176242      i
    177243    with parameter declarations
    178       i: a signed int
    179     with body
    180 
    181 fO3: a function
     244      i: signed int
     245    with body
     246      CompoundStmt
     247
     248fO3: function
     249      accepting unspecified arguments
    182250    returning
    183251      const signed int
     
    185253      i
    186254    with parameter declarations
    187       i: a signed int
    188     with body
    189 
    190 fO4: a extern function
     255      i: signed int
     256    with body
     257      CompoundStmt
     258
     259fO4: extern function
     260      accepting unspecified arguments
    191261    returning
    192262      signed int
     
    194264      i
    195265    with parameter declarations
    196       i: a signed int
    197     with body
    198 
    199 fO5: a extern function
     266      i: signed int
     267    with body
     268      CompoundStmt
     269
     270fO5: extern function
     271      accepting unspecified arguments
    200272    returning
    201273      const signed int
     
    203275      i
    204276    with parameter declarations
    205       i: a signed int
    206     with body
    207 
    208 f: a function
    209     returning
    210       nothing
    211 
    212 f: a function
    213     returning
    214       signed int
    215 
    216 f: a function
    217     with parameters
    218       signed int
    219     returning
    220       nothing
    221 
    222 f: a function
    223     with parameters
    224       signed int
    225     returning
    226       signed int
    227 
    228 f: a function
    229     returning
    230       nothing
    231     with body
    232 
    233 f: a function
    234     returning
    235       signed int
    236     with body
    237 
    238 f: a function
    239     with parameters
    240       signed int
    241     returning
    242       nothing
    243     with body
    244 
    245 f: a function
    246     with parameters
    247       signed int
    248     returning
    249       signed int
    250     with body
    251 
    252 f: a function
    253     returning
    254       x: a signed int
    255 
    256 f: a function
    257     with parameters
    258       x: a signed int
    259     returning
    260       nothing
    261 
    262 f: a function
    263     with parameters
    264       x: a signed int
    265     returning
    266       x: a signed int
    267 
    268 f: a function
    269     returning
    270       x: a signed int
    271     with body
    272 
    273 f: a function
    274     with parameters
    275       x: a signed int
    276     returning
    277       nothing
    278     with body
    279 
    280 f: a function
    281     with parameters
    282       x: a signed int
    283     returning
    284       x: a signed int
    285     with body
    286 
    287 f: a function
    288     returning
    289       signed int
    290       x: a signed int
    291 
    292 f: a function
    293     with parameters
    294       signed int
    295       x: a signed int
    296     returning
    297       nothing
    298 
    299 f: a function
    300     with parameters
    301       signed int
    302       x: a signed int
    303     returning
    304       signed int
    305       x: a signed int
    306 
    307 f: a function
    308     returning
    309       signed int
    310       x: a signed int
    311     with body
    312 
    313 f: a function
    314     with parameters
    315       signed int
    316       x: a signed int
    317     returning
    318       nothing
    319     with body
    320 
    321 f: a function
    322     with parameters
    323       signed int
    324       x: a signed int
    325     returning
    326       signed int
    327       x: a signed int
    328     with body
    329 
    330 f: a function
    331     returning
    332       signed int
    333       x: a signed int
    334       signed int
    335 
    336 f: a function
    337     with parameters
    338       signed int
    339       x: a signed int
    340       signed int
    341     returning
    342       nothing
    343 
    344 f: a function
    345     with parameters
    346       signed int
    347       x: a signed int
    348       signed int
    349     returning
    350       signed int
    351       x: a signed int
    352       signed int
    353 
    354 f: a function
    355     returning
    356       signed int
    357       x: a signed int
    358       signed int
    359     with body
    360 
    361 f: a function
    362     with parameters
    363       signed int
    364       x: a signed int
    365       signed int
    366     returning
    367       nothing
    368     with body
    369 
    370 f: a function
    371     with parameters
    372       signed int
    373       x: a signed int
    374       signed int
    375     returning
    376       signed int
    377       x: a signed int
    378       signed int
    379     with body
    380 
    381 f: a function
    382     returning
    383       signed int
    384       x: a signed int
    385       y: a pointer to signed int
    386 
    387 f: a function
    388     with parameters
    389       signed int
    390       x: a signed int
    391       y: a pointer to signed int
    392     returning
    393       nothing
    394 
    395 f: a function
    396     with parameters
    397       signed int
    398       x: a signed int
    399       y: a pointer to signed int
    400     returning
    401       signed int
    402       x: a signed int
    403       y: a pointer to signed int
    404 
    405 f: a function
    406     returning
    407       signed int
    408       x: a signed int
    409       y: a pointer to signed int
    410     with body
    411 
    412 f: a function
    413     with parameters
    414       signed int
    415       x: a signed int
    416       y: a pointer to signed int
    417     returning
    418       nothing
    419     with body
    420 
    421 f: a function
    422     with parameters
    423       signed int
    424       x: a signed int
    425       y: a pointer to signed int
    426     returning
    427       signed int
    428       x: a signed int
    429       y: a pointer to signed int
    430     with body
    431 
    432 f11: a function
    433     with parameters
    434       signed int
    435     returning
    436       signed int
    437 
    438 f12: a function
    439     with parameters
    440       signed int
    441     returning
    442       signed int
    443 
    444 f: a function
     277      i: signed int
     278    with body
     279      CompoundStmt
     280
     281f: function
     282    returning
     283      nothing
     284
     285f: function
     286    returning
     287      signed int
     288
     289f: function
     290    with parameters
     291      signed int
     292    returning
     293      nothing
     294
     295f: function
     296    with parameters
     297      signed int
     298    returning
     299      signed int
     300
     301f: function
     302    returning
     303      nothing
     304    with body
     305      CompoundStmt
     306
     307f: function
     308    returning
     309      signed int
     310    with body
     311      CompoundStmt
     312
     313f: function
     314    with parameters
     315      signed int
     316    returning
     317      nothing
     318    with body
     319      CompoundStmt
     320
     321f: function
     322    with parameters
     323      signed int
     324    returning
     325      signed int
     326    with body
     327      CompoundStmt
     328
     329f: function
     330    returning
     331      x: signed int
     332
     333f: function
     334    with parameters
     335      x: signed int
     336    returning
     337      nothing
     338
     339f: function
     340    with parameters
     341      x: signed int
     342    returning
     343      x: signed int
     344
     345f: function
     346    returning
     347      x: signed int
     348    with body
     349      CompoundStmt
     350
     351f: function
     352    with parameters
     353      x: signed int
     354    returning
     355      nothing
     356    with body
     357      CompoundStmt
     358
     359f: function
     360    with parameters
     361      x: signed int
     362    returning
     363      x: signed int
     364    with body
     365      CompoundStmt
     366
     367f: function
     368    returning
     369      signed int
     370      x: signed int
     371
     372f: function
     373    with parameters
     374      signed int
     375      x: signed int
     376    returning
     377      nothing
     378
     379f: function
     380    with parameters
     381      signed int
     382      x: signed int
     383    returning
     384      signed int
     385      x: signed int
     386
     387f: function
     388    returning
     389      signed int
     390      x: signed int
     391    with body
     392      CompoundStmt
     393
     394f: function
     395    with parameters
     396      signed int
     397      x: signed int
     398    returning
     399      nothing
     400    with body
     401      CompoundStmt
     402
     403f: function
     404    with parameters
     405      signed int
     406      x: signed int
     407    returning
     408      signed int
     409      x: signed int
     410    with body
     411      CompoundStmt
     412
     413f: function
     414    returning
     415      signed int
     416      x: signed int
     417      signed int
     418
     419f: function
     420    with parameters
     421      signed int
     422      x: signed int
     423      signed int
     424    returning
     425      nothing
     426
     427f: function
     428    with parameters
     429      signed int
     430      x: signed int
     431      signed int
     432    returning
     433      signed int
     434      x: signed int
     435      signed int
     436
     437f: function
     438    returning
     439      signed int
     440      x: signed int
     441      signed int
     442    with body
     443      CompoundStmt
     444
     445f: function
     446    with parameters
     447      signed int
     448      x: signed int
     449      signed int
     450    returning
     451      nothing
     452    with body
     453      CompoundStmt
     454
     455f: function
     456    with parameters
     457      signed int
     458      x: signed int
     459      signed int
     460    returning
     461      signed int
     462      x: signed int
     463      signed int
     464    with body
     465      CompoundStmt
     466
     467f: function
     468    returning
     469      signed int
     470      x: signed int
     471      y: pointer to signed int
     472
     473f: function
     474    with parameters
     475      signed int
     476      x: signed int
     477      y: pointer to signed int
     478    returning
     479      nothing
     480
     481f: function
     482    with parameters
     483      signed int
     484      x: signed int
     485      y: pointer to signed int
     486    returning
     487      signed int
     488      x: signed int
     489      y: pointer to signed int
     490
     491f: function
     492    returning
     493      signed int
     494      x: signed int
     495      y: pointer to signed int
     496    with body
     497      CompoundStmt
     498
     499f: function
     500    with parameters
     501      signed int
     502      x: signed int
     503      y: pointer to signed int
     504    returning
     505      nothing
     506    with body
     507      CompoundStmt
     508
     509f: function
     510    with parameters
     511      signed int
     512      x: signed int
     513      y: pointer to signed int
     514    returning
     515      signed int
     516      x: signed int
     517      y: pointer to signed int
     518    with body
     519      CompoundStmt
     520
     521f11: function
     522    with parameters
     523      signed int
     524    returning
     525      signed int
     526
     527f12: function
     528    with parameters
     529      signed int
     530    returning
     531      signed int
     532
     533f: function
    445534    with parameters
    446535      function
    447536          with parameters
    448537            signed int
    449             p: a signed int
     538            p: signed int
    450539          returning
    451540            signed int
     
    460549      signed int
    461550    with body
    462       Declaration of p: a pointer to open array of open array of pointer to open array of open array of signed int
    463       Declaration of p: a pointer to open array of open array of pointer to open array of open array of signed int
    464       Declaration of p: a pointer to open array of pointer to function
    465           with parameters
    466             signed int
    467           returning
    468             signed int
    469 
    470 
    471 f1: a static function
     551      CompoundStmt
     552        Declaration of p: pointer to open array of array of pointer to open array of array of signed int with dimension of constant expression 3 signed int with dimension of constant expression 10 signed int
     553        Declaration of p: pointer to open array of array of pointer to open array of array of signed int with dimension of constant expression 3 signed int with dimension of constant expression 10 signed int
     554        Declaration of p: pointer to open array of pointer to function
     555            with parameters
     556              signed int
     557            returning
     558              signed int
     559
     560
     561f1: static function
     562      accepting unspecified arguments
    472563    returning
    473564      pointer to const signed int
    474565    with body
    475 
    476 f2: a static function
     566      CompoundStmt
     567
     568f2: static function
    477569    returning
    478570      const signed int
    479571    with body
    480 
    481 f3: a inline static function
     572      CompoundStmt
     573
     574f3: inline static function
    482575    returning
    483576      const pointer to signed int
    484577    with body
    485 
    486 f4: a inline static function
     578      CompoundStmt
     579
     580f4: inline static function
    487581    returning
    488582      const tuple of types
     
    491585
    492586    with body
    493 
    494 f5: a static function
     587      CompoundStmt
     588
     589f5: static function
    495590    returning
    496591      const tuple of types
     
    499594
    500595    with body
    501 
    502 f: a function
    503     with parameters
    504       function
    505           returning
    506             signed int
    507 
    508       function
     596      CompoundStmt
     597
     598f: function
     599    with parameters
     600      function
     601            accepting unspecified arguments
     602          returning
     603            signed int
     604
     605      function
     606            accepting unspecified arguments
    509607          returning
    510608            pointer to signed int
    511609
    512610      function
     611            accepting unspecified arguments
    513612          returning
    514613            pointer to pointer to signed int
    515614
    516615      function
     616            accepting unspecified arguments
    517617          returning
    518618            pointer to const pointer to signed int
    519619
    520620      function
     621            accepting unspecified arguments
    521622          returning
    522623            const pointer to const pointer to signed int
    523624
    524625      open array of signed int
     626      array of signed int with dimension of constant expression 10 signed int
     627      open array of pointer to signed int
     628      array of pointer to signed int with dimension of constant expression 10 signed int
     629      open array of pointer to pointer to signed int
     630      array of pointer to pointer to signed int with dimension of constant expression 10 signed int
     631      open array of pointer to const pointer to signed int
     632      array of pointer to const pointer to signed int with dimension of constant expression 10 signed int
     633      open array of const pointer to const pointer to signed int
     634      array of const pointer to const pointer to signed int with dimension of constant expression 10 signed int
     635    returning
     636      signed int
     637
     638f: function
     639    with parameters
     640      function
     641            accepting unspecified arguments
     642          returning
     643            signed int
     644
     645      function
     646            accepting unspecified arguments
     647          returning
     648            pointer to signed int
     649
     650      function
     651            accepting unspecified arguments
     652          returning
     653            pointer to pointer to signed int
     654
     655      function
     656            accepting unspecified arguments
     657          returning
     658            pointer to const pointer to signed int
     659
     660      function
     661            accepting unspecified arguments
     662          returning
     663            const pointer to const pointer to signed int
     664
    525665      open array of signed int
     666      array of signed int with dimension of constant expression 10 signed int
    526667      open array of pointer to signed int
    527       open array of pointer to signed int
     668      array of pointer to signed int with dimension of constant expression 10 signed int
    528669      open array of pointer to pointer to signed int
    529       open array of pointer to pointer to signed int
     670      array of pointer to pointer to signed int with dimension of constant expression 10 signed int
    530671      open array of pointer to const pointer to signed int
    531       open array of pointer to const pointer to signed int
     672      array of pointer to const pointer to signed int with dimension of constant expression 10 signed int
    532673      open array of const pointer to const pointer to signed int
    533       open array of const pointer to const pointer to signed int
    534     returning
    535       signed int
    536 
    537 f: a function
    538     with parameters
    539       function
    540           returning
    541             signed int
    542 
    543       function
    544           returning
    545             pointer to signed int
    546 
    547       function
    548           returning
    549             pointer to pointer to signed int
    550 
    551       function
    552           returning
    553             pointer to const pointer to signed int
    554 
    555       function
    556           returning
    557             const pointer to const pointer to signed int
    558 
    559       open array of signed int
    560       open array of signed int
    561       open array of pointer to signed int
    562       open array of pointer to signed int
    563       open array of pointer to pointer to signed int
    564       open array of pointer to pointer to signed int
    565       open array of pointer to const pointer to signed int
    566       open array of pointer to const pointer to signed int
    567       open array of const pointer to const pointer to signed int
    568       open array of const pointer to const pointer to signed int
    569     returning
    570       signed int
    571     with body
    572 
    573 T: a typedef for signed int
    574 f: a function
    575     with parameters
    576       function
    577           with parameters
    578             instance of type T
    579           returning
    580             instance of type T
    581 
    582       T: a instance of type T
    583     returning
    584       signed int
    585     with body
    586 
     674      array of const pointer to const pointer to signed int with dimension of constant expression 10 signed int
     675    returning
     676      signed int
     677    with body
     678      CompoundStmt
     679
     680T: typedef for signed int
     681f: function
     682    with parameters
     683      f: pointer to instance of type T (not function type)
     684      t: instance of type T (not function type)
     685    returning
     686      signed int
     687    with body
     688      CompoundStmt
     689        Declaration of T: instance of type T (not function type)
     690
  • src/Tests/Expect-e/MiscError.txt

    reb50842 r937e51d  
    55  nothing
    66Alternatives are:        Cost ( 0, 0, 1 ):         Cast of:
    7           Variable Expression: b: a signed int
     7          Variable Expression: b: signed int
    88
    99        to:
     
    1414
    1515        Cost ( 0, 0, 1 ):         Cast of:
    16           Variable Expression: b: a float
     16          Variable Expression: b: float
    1717
    1818        to:
     
    2929  nothing
    3030Alternatives are:        Cost ( 0, 0, 1 ):         Cast of:
    31           Variable Expression: b: a signed int
     31          Variable Expression: b: signed int
    3232
    3333        to:
     
    3838
    3939        Cost ( 0, 0, 1 ):         Cast of:
    40           Variable Expression: b: a float
     40          Variable Expression: b: float
    4141
    4242        to:
     
    5757Alternatives are:        Cost ( 0, 0, 1 ):         Cast of:
    5858          Comma Expression:
    59             Variable Expression: a: a signed int
     59            Variable Expression: a: signed int
    6060
    61             Variable Expression: b: a signed int
     61            Variable Expression: b: signed int
    6262
    6363        to:
     
    6969        Cost ( 0, 0, 1 ):         Cast of:
    7070          Comma Expression:
    71             Variable Expression: a: a signed int
     71            Variable Expression: a: signed int
    7272
    73             Variable Expression: b: a float
     73            Variable Expression: b: float
    7474
    7575        to:
  • src/Tests/Expect-e/OccursError.txt

    reb50842 r937e51d  
    11Error: No reasonable alternatives for expression Applying untyped:
    22    Name: f
    3 
    43...to:
    54    Name: g
  • src/Tests/Expect-s/Array.txt

    reb50842 r937e51d  
    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/Expect-s/Context.txt

    reb50842 r937e51d  
    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/Expect-s/Enum.txt

    reb50842 r937e51d  
    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/Expect-s/Forall.txt

    reb50842 r937e51d  
    1 in default case, (shouldn't be here)
    2 in default case, (shouldn't be here)
    3 Adding typedef f
    4 --- Entering scope
    5 Adding type T
    6 --- Entering scope
    7 --- Leaving scope containing
    8 --- Leaving scope containing
    9 T
     1Adding function ?=?
     2--- Entering scope
     3--- Leaving scope containing
     4Adding function ?=?
     5--- Entering scope
     6--- Leaving scope containing
     7Adding function ?=?
     8--- Entering scope
     9--- Leaving scope containing
     10Adding function ?=?
     11--- Entering scope
     12--- Leaving scope containing
     13Adding function ?=?
     14--- Entering scope
     15--- Leaving scope containing
     16Adding function ?=?
     17--- Entering scope
     18--- Leaving scope containing
     19Adding function g1
     20--- Entering scope
     21--- Entering scope
     22Adding function f
     23--- Entering scope
     24--- Entering scope
     25--- Leaving scope containing
     26Adding type T
     27Adding function ?=?
     28--- Entering scope
     29--- Leaving scope containing
     30--- Leaving scope containing
     31T
     32Adding function f
     33--- Entering scope
     34--- Leaving scope containing
     35Adding function h
     36--- Entering scope
     37Adding object p
     38--- Leaving scope containing
     39Adding object x
     40Adding object y
     41Adding object z
     42Adding object w
     43--- Leaving scope containing
     44--- Leaving scope containing
     45Adding function g2
     46--- Entering scope
     47--- Entering scope
     48Adding function f
     49--- Entering scope
     50--- Entering scope
     51--- Leaving scope containing
     52Adding type T
     53Adding function ?=?
     54--- Entering scope
     55--- Leaving scope containing
     56--- Leaving scope containing
     57T
     58Adding function f
     59--- Entering scope
     60--- Entering scope
     61--- Leaving scope containing
     62Adding type T
     63Adding function ?=?
     64--- Entering scope
     65--- Leaving scope containing
     66--- Entering scope
     67--- Leaving scope containing
     68Adding type U
     69Adding function ?=?
     70--- Entering scope
     71--- Leaving scope containing
     72--- Leaving scope containing
     73T
     74U
     75Adding object x
     76Adding object y
     77Adding object z
     78Adding object w
     79--- Leaving scope containing
     80--- Leaving scope containing
    1081Adding function swap
    1182--- Entering scope
    12 Adding type T
     83--- Entering scope
     84--- Leaving scope containing
     85Adding type T
     86Adding function ?=?
    1387--- Entering scope
    1488--- Leaving scope containing
     
    1892Adding object temp
    1993--- Leaving scope containing
    20 temp (__temp__2tT) (2)
    21 --- Leaving scope containing
    22 left (__left__2tT) (1)
    23 right (__right__2tT) (1)
     94--- Leaving scope containing
     95T
     96--- Entering scope
     97--- Entering scope
     98--- Leaving scope containing
     99Adding type T
     100Adding object 0
     101Adding function ?+?
     102--- Entering scope
     103--- Leaving scope containing
     104Adding function ?++
     105--- Entering scope
     106--- Leaving scope containing
     107Adding function ?+=?
     108--- Entering scope
     109--- Leaving scope containing
     110--- Leaving scope containing
    24111T
    25112Adding context sumable
    26113--- Entering scope
    27 Adding type T
    28 --- Entering scope
    29 --- Leaving scope containing
     114--- Leaving scope containing
     115Adding type T1
    30116Adding object 0
    31117Adding function ?+?
     
    38124--- Entering scope
    39125--- Leaving scope containing
    40 --- Leaving scope containing
    41 0 (__0__C2tT) (1)
    42 ?++ (__?++__F_2tT_2tT_) (1)
    43 ?+=? (__?+=?__F_2tT_2tT2tT_) (1)
    44 ?+? (__?+?__F_2tT_2tT2tT_) (1)
    45 T
    46 Adding type T1
    47 --- Entering scope
    48 --- Leaving scope containing
    49 Adding object 0
    50 Adding function ?+?
    51 --- Entering scope
    52 --- Leaving scope containing
    53 Adding function ?++
    54 --- Entering scope
    55 --- Leaving scope containing
    56 Adding function ?+=?
    57 --- Entering scope
    58 --- Leaving scope containing
    59 Adding type T2
    60 --- Entering scope
     126--- Entering scope
     127--- Entering scope
     128--- Leaving scope containing
    61129Adding type P1
    62130--- Entering scope
    63131--- Leaving scope containing
    64132Adding type P2
    65 --- Entering scope
    66 --- Leaving scope containing
    67133--- Leaving scope containing
    68134P1
    69135P2
     136Adding type T2
     137--- Entering scope
     138--- Leaving scope containing
    70139Adding type T3
    71 --- Entering scope
    72 --- 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
     140Adding fwd decl for struct __anonymous0
    84141--- Entering scope
    85142Adding object i
    86143Adding object j
    87144--- Leaving scope containing
    88 i (__i__3tP1) (1)
    89 j (__j__3tP2) (1)
    90 Adding type T2
    91 --- Entering scope
     145Adding struct __anonymous0
     146--- Entering scope
     147--- Entering scope
     148--- Leaving scope containing
    92149Adding type P1
    93150--- Entering scope
     
    99156P1
    100157P2
    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
     158Adding type T2
    111159Adding object w1
    112 Adding typedef w2
    113 --- Entering scope
    114 --- Leaving scope containing
    115160Adding object g2
     161--- Entering scope
     162--- Leaving scope containing
    116163Adding type w3
    117 --- Entering scope
    118 --- Leaving scope containing
    119164Adding object g3
    120165Adding function sum
    121166--- Entering scope
    122 Adding type T
    123 --- Entering scope
    124 --- 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 ?+=?
     167--- Entering scope
     168--- Leaving scope containing
     169Adding type T
     170Adding function ?=?
    133171--- Entering scope
    134172--- Leaving scope containing
     
    138176Adding object total
    139177Adding object i
    140 --- Leaving scope containing
    141 i (__i__i) (2)
    142 total (__total__2tT) (2)
    143 --- 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)
     178--- Entering scope
     179--- Leaving scope containing
     180--- Leaving scope containing
     181--- Leaving scope containing
    150182T
    151183Adding function twice
    152184--- Entering scope
    153 Adding type T
     185--- Entering scope
     186--- Leaving scope containing
     187Adding type T
     188Adding function ?=?
    154189--- Entering scope
    155190--- Leaving scope containing
     
    168203--- Leaving scope containing
    169204--- 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)
     205T
     206Adding function min
     207--- Entering scope
     208--- Entering scope
     209--- Leaving scope containing
     210Adding type T
     211Adding function ?=?
     212--- Entering scope
     213--- Leaving scope containing
     214Adding object 0
     215Adding function ?!=?
     216--- Entering scope
     217--- Leaving scope containing
     218Adding function ?<?
     219--- Entering scope
     220--- Leaving scope containing
     221Adding object t1
     222Adding object t2
     223--- Entering scope
     224--- Leaving scope containing
     225--- Leaving scope containing
    175226T
    176227Adding function main
     
    182233Adding object f
    183234--- Leaving scope containing
    184 a (__a__A0i) (2)
    185 f (__f__f) (2)
    186 x (__x__i) (2)
    187 y (__y__i) (2)
    188 --- Leaving scope containing
     235--- Leaving scope containing
  • src/Tests/Expect-s/Scope.txt

    reb50842 r937e51d  
    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/Expect-s/ScopeErrors.txt

    reb50842 r937e51d  
    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/Expect-s/Tuple.txt

    reb50842 r937e51d  
    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)
  • src/Tests/Function.c

    reb50842 r937e51d  
    44float f( float );
    55
    6 void g()
    7 {
    8   // selects the same f and a each time
    9   // but without a cast would be ambiguous
    10   f( (int)a );
    11   (int)f( a );
     6void g() {
     7        // selects the same f each time but without a cast would be ambiguous
     8        f( (int)a );
     9        (int)f( a );
    1210}
    1311
     
    2422[ int, int ] r( int, int, int, int );
    2523
    26 void s()
    27 {
    28   r( p, q );
    29   r( [ q, p ] );
    30   r( r( p, q ), r( q, q ) );
     24void s() {
     25        r( p, q );
     26        r( [ q, p ] );
     27        r( r( p, q ), r( q, q ) );
    3128}
     29
     30// Local Variables: //
     31// tab-width: 4 //
     32// End: //
  • src/Tests/Functions.c

    reb50842 r937e51d  
    44
    55int f (
    6     int (void),
    7     int (int),
    8     int ((void)),
    9     int ((int)),
    10     void g(void)
    11   ) {
    12     (*g)();
    13     g();
    14     g = h;
     6        int (void),
     7        int (int),
     8        int ((void)),
     9        int ((int)),
     10        void g(void)
     11        ) {
     12        (*g)();
     13        g();
     14        g = h;
    1515}
    1616
     
    9393        int ( int, int p ),
    9494        [int](int)
    95     ) {
    96     int (*(*p)[][10])[][3];
    97     * [][10] * [][3] int p;
    98     * [] * [int](int) p;
     95        ) {
     96        int (*(*p)[][10])[][3];
     97        * [][10] * [][3] int p;
     98        * [] * [int](int) p;
    9999}
    100100
     
    108108
    109109int f(
    110     int (),
     110        int (),
    111111
    112     int *(),
    113     int **(),
    114     int * const *(),
    115     int * const * const (),
     112        int *(),
     113        int **(),
     114        int * const *(),
     115        int * const * const (),
    116116
    117     int ([]),
    118     int ([10]),
     117        int ([]),
     118        int ([10]),
    119119
    120     int *([]),
    121     int *([10]),
    122     int **([]),
    123     int **([10]),
    124     int * const *([]),
    125     int * const *([10]),
    126     int * const * const ([]),
    127     int * const * const ([10])
    128     );
     120        int *([]),
     121        int *([10]),
     122        int **([]),
     123        int **([10]),
     124        int * const *([]),
     125        int * const *([10]),
     126        int * const * const ([]),
     127        int * const * const ([10])
     128        );
    129129
    130130int f(
    131     int (),
     131        int (),
    132132
    133     int *(),
    134     int **(),
    135     int * const *(),
    136     int * const * const (),
     133        int *(),
     134        int **(),
     135        int * const *(),
     136        int * const * const (),
    137137
    138     int ([]),
    139     int ([10]),
     138        int ([]),
     139        int ([10]),
    140140
    141     int *([]),
    142     int *([10]),
    143     int **([]),
    144     int **([10]),
    145     int * const *([]),
    146     int * const *([10]),
    147     int * const * const ([]),
    148     int * const * const ([10])
    149     ) {
     141        int *([]),
     142        int *([10]),
     143        int **([]),
     144        int **([10]),
     145        int * const *([]),
     146        int * const *([10]),
     147        int * const * const ([]),
     148        int * const * const ([10])
     149        ) {
    150150}
    151151
    152152typedef int T;
    153153
    154 int f( T (T), T T ) {
    155     T (T);
     154int f( T (*f), T t ) {
     155        T (T);
    156156}
    157157
     
    162162//int f[]() {}
    163163//int ((*f15())())[] {}
     164
     165// Local Variables: //
     166// tab-width: 4 //
     167// End: //
  • src/Tests/InferParam.c

    reb50842 r937e51d  
    88void i( float );
    99
    10 void h()
    11 {
    12   int a;
    13   i( g( a ) );
     10void h() {
     11        int a;
     12        i( g( a ) );
    1413}
    1514
    16 context has_f_and_j( type T, type U )
    17 {
    18   U f( T );
    19   U j( T, U );
     15context has_f_and_j( type T, type U ) {
     16        U f( T );
     17        U j( T, U );
    2018};
    2119
     
    2321forall( type T, type U | has_f_and_j( T, U ) ) U k( T );
    2422
    25 void l()
    26 {
    27   int b;
    28   i( k( b ) );
     23void l() {
     24        int b;
     25        i( k( b ) );
    2926}
     27
     28// Local Variables: //
     29// tab-width: 4 //
     30// End: //
  • src/Tests/ScopeErrors.c

    reb50842 r937e51d  
    55float thisIsNotAnError;
    66
    7 int thisIsAlsoNotAnError()
    8 {
     7int thisIsAlsoNotAnError() {
    98  int thisIsNotAnError;
    109}
    1110
    12 int thisIsAlsoNotAnError( double x )
    13 {
     11int thisIsAlsoNotAnError( double x ) {
    1412}
    1513
     
    1715double thisIsStillNotAnError( double );
    1816
    19 double butThisIsAnError( double )
    20 {
     17double butThisIsAnError( double ) {
    2118}
    2219
    23 double butThisIsAnError( double )
    24 {
     20double butThisIsAnError( double ) {
    2521}
    2622
     23// Local Variables: //
     24// tab-width: 4 //
     25// End: //
  • src/Tests/Typedef.c

    reb50842 r937e51d  
    1818a c;
    1919
    20 typedef typeof(3) x, y;  /* GCC */
     20typedef typeof(3) x, y;  // GCC
    2121
    2222x p;
     
    2929}
    3030
    31 /* new-style function definitions */
     31// new-style function definitions
    3232
    3333typedef [10] * int arrayOf10Pointers;
     
    4242typedef [ * [static 10] int ] t;
    4343typedef [ * [static 10] int x ] f();
     44
     45// Local Variables: //
     46// tab-width: 4 //
     47// End: //
  • src/Tests/VariableDeclarator.c

    reb50842 r937e51d  
    154154[const * const * int] cf70(int);
    155155
    156 
    157 * [20] double z;
    158 [20] * char w;
    159 
    160156// function pointer
    161157
    162158*[]*[]* [ *[]*[] int ]( *[]*[] int, *[]*[] int ) v3;
     159
     160// Local Variables: //
     161// tab-width: 4 //
     162// End: //
Note: See TracChangeset for help on using the changeset viewer.