Changeset 292642a for tests


Ignore:
Timestamp:
May 19, 2019, 6:29:02 PM (6 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
0588d8c, 19e567dd, 933f32f, d148778, e63326b
Parents:
b2ac656
Message:

change for loop

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/sum.cfa

    rb2ac656 r292642a  
    1111// Created On       : Wed May 27 17:56:53 2015
    1212// Last Modified By : Peter A. Buhr
    13 // Last Modified On : Wed Feb 20 08:32:46 2019
    14 // Update Count     : 329
     13// Last Modified On : Sun May 19 11:21:02 2019
     14// Update Count     : 330
    1515//
    1616
     
    2929T sum( size_t size, T a[] ) {
    3030        T total = 0;                                                                            // initialize by 0 constructor
    31         for ( size_t i = 0; i < size; i += 1 )
     31        for ( i; size )
    3232                total += a[i];                                                                  // select appropriate +
    3333        return total;
Note: See TracChangeset for help on using the changeset viewer.