Changeset 4a359e2


Ignore:
Timestamp:
Nov 24, 2020, 3:56:50 PM (10 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast-unique-expr
Children:
bb87dd0
Parents:
53e28a7
Message:

Fixed expected output for new-ast self-assignment warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/warnings/.expect/self-assignment.nast.txt

    r53e28a7 r4a359e2  
    44  reference to signed int
    55warnings/self-assignment.cfa:30:1 warning: self assignment of expression: Generated Cast of:
    6   Variable Expression: s: instance of struct S with body 1
     6  Variable Expression: s: instance of struct S with body
    77... to:
    8   reference to instance of struct S with body 1
     8  reference to instance of struct S with body
    99warnings/self-assignment.cfa:31:1 warning: self assignment of expression: Generated Cast of:
    1010  Member Expression, with field:
    1111    i: signed int
    1212  ... from aggregate:
    13     Variable Expression: s: instance of struct S with body 1
     13    Variable Expression: s: instance of struct S with body
    1414... to:
    1515  reference to signed int
     
    1919  ... from aggregate:
    2020    Member Expression, with field:
    21       s: instance of struct S with body 1
     21      s: instance of struct S with body
    2222    ... from aggregate:
    23       Variable Expression: t: instance of struct T with body 1
     23      Variable Expression: t: instance of struct T with body
    2424... to:
    2525  reference to signed int
Note: See TracChangeset for help on using the changeset viewer.