Changeset d60a4c2 for tests/ctrl-flow


Ignore:
Timestamp:
Jan 11, 2025, 5:48:46 PM (9 months ago)
Author:
Peter A. Buhr <pabuhr@…>
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.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

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
     1done
  • tests/ctrl-flow/goto.cfa

    r7d65715f rd60a4c2  
    1616}
    1717
    18 int main(int argc, char * argv[]) {
     18int main() {
    1919        sout | nlOff;
    2020
  • tests/ctrl-flow/ifwhileCtl.cfa

    r7d65715f rd60a4c2  
    1919
    2020int main( void ) {
    21         int x = 4, y = 3;
     21        int x = 4, y = 3;               (void) x; (void) y;
    2222
    2323        if ( int x = 1 ) {
     
    4242
    4343        if ( struct S { int i; } s = { 3 }; s.i < 4 ) {
    44                 S s1;
     44                S s1;   (void) s1;
    4545                sout | "s.i < 4 correct";
    4646        } else {
    47                 S s1;
     47                S s1;   (void) s1;
    4848                sout | "s.i >= 4 incorrect";
    4949        } // if
     
    6464
    6565        while ( struct S { int i; } s = { 3 }; s.i < 4 ) {
    66                 S s1;
     66                S s1;   (void) s1;
    6767                sout | "s.i < 4 correct";
    6868                break;
  • tests/ctrl-flow/labelledExit.cfa

    r7d65715f rd60a4c2  
    179179
    180180int main( int argc, char const *argv[] ) {
    181     #pragma GCC warning "Compiled"                      // force non-empty .expect file, NO TABS!!!
     181        printf("done\n");
    182182}
    183183
Note: See TracChangeset for help on using the changeset viewer.