Changeset 0982a05 for tests/forctrl.c


Ignore:
Timestamp:
Aug 30, 2018, 6:30:10 PM (3 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer
Children:
7e08acf, a9fb796, e255e69
Parents:
933933c
Message:

fix 0 and 1 for new for-control

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/forctrl.c

    r933933c r0982a05  
    1010// Created On       : Wed Aug  8 18:32:59 2018
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed Aug 29 18:04:15 2018
    13 // Update Count     : 26
     12// Last Modified On : Thu Aug 30 17:12:12 2018
     13// Update Count     : 43
    1414//
    1515
     
    3434        for () { sout | "empty"; break; }               sout | endl;
    3535
     36        for ( 0 ) { sout | "A"; }                               sout | endl;
     37        for ( 1 ) { sout | "A"; }                               sout | endl;
     38        for ( 2 ) { sout | "A"; }                               sout | endl;
    3639        for ( 10 ) { sout | "A"; }                              sout | endl;
    3740
    38         for ( 2 ~= 10 ~ 2 ) { sout | "B"; }             sout | endl;
    39         for ( 10 -~= 2 ~ -2 ) { sout | "C"; }   sout | endl;
     41        for ( 1 ~= 10 ~ 2 ) { sout | "B"; }             sout | endl;
     42        for ( 10 -~= 1 ~ -2 ) { sout | "C"; }   sout | endl;
    4043        for ( 0.5 ~ 5.5 ) { sout | "D"; }               sout | endl;
    4144        for ( 5.5 -~ 0.5 ) { sout | "E"; }              sout | endl;
     
    4447        for ( j; 10 ) { sout | j; }                             sout | endl;
    4548
    46         //for ( i; 1 ~= 10 ~ 2 ) { sout | i; }  sout | endl;
    47         for ( i; 2 ~= 10 ~ 2 ) { sout | i; }    sout | endl;
    48         for ( i; 10 -~= 2 ~ -2 ) { sout | i; }  sout | endl;
     49        for ( i; 1 ~= 10 ~ 2 ) { sout | i; }    sout | endl;
     50        for ( i; 10 -~= 1 ~ -2 ) { sout | i; }  sout | endl;
    4951        for ( i; 0.5 ~ 5.5 ) { sout | i; }              sout | endl;
    5052        for ( i; 5.5 -~ 0.5 ) { sout | i; }             sout | endl;
Note: See TracChangeset for help on using the changeset viewer.