source: tests/warnings/.expect/self-assignment.txt@ ad41cbd

stuck-waitfor-destruct
Last change on this file since ad41cbd was 2853d6f, checked in by Michael Brooks <mlbrooks@…>, 16 months ago

Remove uses of warnings to show test success. Eliminate simple causes of other warnings from affected tests and remove the result from WFLAG_OPT_LAX.

Many affected tests also formerly used -fsyntax-only to avoid errors at later compilation stages, or at runtime. Repair such tests to actually work though runtime, and remove them from SYNTAX_ONLY_CODE.

Group tests listed under WFLAGS_OPT according to why they should receive lax treatment. Add reason WFLGAS_OPT_LAX_EXPECT_WARN and give the original list reason WFLGAS_OPT_LAX_TO_INVESTIGATE.

Tests whose purpose is to show a warning are listed as both SYNTAX_ONLY_CODE (so that the warning is the output) and WFLGAS_OPT_LAX_EXPECT_WARN (to document this fact).

  • Property mode set to 100644
File size: 1.6 KB
RevLine 
[17129659]1warnings/self-assignment.cfa:29:1 warning: self assignment of expression: Generated Cast of:
[1feb535f]2 Variable Expression: j: signed int
[cd6a6ff]3 ... with resolved type:
4 signed int
[1feb535f]5... to:
6 reference to signed int
[cd6a6ff]7... with resolved type:
[0497b6ba]8 reference to signed int.
[17129659]9warnings/self-assignment.cfa:30:1 warning: self assignment of expression: Generated Cast of:
[4a359e2]10 Variable Expression: s: instance of struct S with body
[cd6a6ff]11 ... with resolved type:
12 instance of struct S with body
[1feb535f]13... to:
[4a359e2]14 reference to instance of struct S with body
[cd6a6ff]15... with resolved type:
[0497b6ba]16 reference to instance of struct S with body.
[17129659]17warnings/self-assignment.cfa:31:1 warning: self assignment of expression: Generated Cast of:
[107b01a]18 Member Expression, with field:
[1feb535f]19 i: signed int
[107b01a]20 ... from aggregate:
[4a359e2]21 Variable Expression: s: instance of struct S with body
[cd6a6ff]22 ... with resolved type:
23 instance of struct S with body
24 ... with resolved type:
25 signed int
[1feb535f]26... to:
27 reference to signed int
[cd6a6ff]28... with resolved type:
[0497b6ba]29 reference to signed int.
[17129659]30warnings/self-assignment.cfa:32:1 warning: self assignment of expression: Generated Cast of:
[107b01a]31 Member Expression, with field:
[1feb535f]32 i: signed int
[107b01a]33 ... from aggregate:
34 Member Expression, with field:
[4a359e2]35 s: instance of struct S with body
[107b01a]36 ... from aggregate:
[4a359e2]37 Variable Expression: t: instance of struct T with body
[cd6a6ff]38 ... with resolved type:
39 instance of struct T with body
40 ... with resolved type:
41 instance of struct S with body
42 ... with resolved type:
43 signed int
[1feb535f]44... to:
45 reference to signed int
[cd6a6ff]46... with resolved type:
[0497b6ba]47 reference to signed int.
Note: See TracBrowser for help on using the repository browser.