Changeset 2853d6f for tests/warnings
- Timestamp:
- Jan 2, 2025, 7:00:01 PM (4 months ago)
- Branches:
- master
- Children:
- 656c8ac
- Parents:
- a6b48f6
- Location:
- tests/warnings
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified tests/warnings/.expect/self-assignment.txt ¶
ra6b48f6 r2853d6f 1 warnings/self-assignment.cfa:34:25: warning: Compiled2 1 warnings/self-assignment.cfa:29:1 warning: self assignment of expression: Generated Cast of: 3 2 Variable Expression: j: signed int -
TabularUnified tests/warnings/self-assignment.cfa ¶
ra6b48f6 r2853d6f 22 22 }; 23 23 24 int main() {24 void f() { 25 25 int j = 0; 26 26 S s = { 0 }; … … 32 32 t.s.i = t.s.i; 33 33 34 #pragma GCC warning "Compiled" // force non-empty .expect file, NO TABS!!! 34 // Is compiled -fsyntax-only (not run), to make the test's "output" be the warnings from cfa-cpp. 35 35 } 36 36
Note: See TracChangeset
for help on using the changeset viewer.