Changeset 10b5970 for tests/ctrl-flow
- Timestamp:
- Jan 7, 2025, 3:22:19 PM (8 months ago)
- Branches:
- master
- Children:
- 190a833
- Parents:
- 70670e7
- Location:
- tests/ctrl-flow
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/ctrl-flow/goto.cfa
r70670e7 r10b5970 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
r70670e7 r10b5970 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;
Note:
See TracChangeset
for help on using the changeset viewer.