Changeset d60a4c2 for tests/ctrl-flow
- Timestamp:
- Jan 11, 2025, 5:48:46 PM (9 months ago)
- Branches:
- master
- Children:
- f886608
- Parents:
- 7d65715f (diff), 32a119e9 (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. - Location:
- tests/ctrl-flow
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/ctrl-flow/.expect/labelledExit.txt
r7d65715f rd60a4c2 1 ctrl-flow/labelledExit.cfa:181:25: warning: Compiled 1 done -
tests/ctrl-flow/goto.cfa
r7d65715f rd60a4c2 16 16 } 17 17 18 int main( int argc, char * argv[]) {18 int main() { 19 19 sout | nlOff; 20 20 -
tests/ctrl-flow/ifwhileCtl.cfa
r7d65715f rd60a4c2 19 19 20 20 int main( void ) { 21 int x = 4, y = 3; 21 int x = 4, y = 3; (void) x; (void) y; 22 22 23 23 if ( int x = 1 ) { … … 42 42 43 43 if ( struct S { int i; } s = { 3 }; s.i < 4 ) { 44 S s1; 44 S s1; (void) s1; 45 45 sout | "s.i < 4 correct"; 46 46 } else { 47 S s1; 47 S s1; (void) s1; 48 48 sout | "s.i >= 4 incorrect"; 49 49 } // if … … 64 64 65 65 while ( struct S { int i; } s = { 3 }; s.i < 4 ) { 66 S s1; 66 S s1; (void) s1; 67 67 sout | "s.i < 4 correct"; 68 68 break; -
tests/ctrl-flow/labelledExit.cfa
r7d65715f rd60a4c2 179 179 180 180 int main( int argc, char const *argv[] ) { 181 #pragma GCC warning "Compiled" // force non-empty .expect file, NO TABS!!! 181 printf("done\n"); 182 182 } 183 183
Note:
See TracChangeset
for help on using the changeset viewer.