Changeset d56cc219 for src/tests


Ignore:
Timestamp:
Jun 2, 2018, 9:58:01 AM (6 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, with_gc
Children:
3ce0d440
Parents:
adb6a4f1
git-author:
Peter A. Buhr <pabuhr@…> (06/02/18 09:57:07)
git-committer:
Peter A. Buhr <pabuhr@…> (06/02/18 09:58:01)
Message:

additional test

Location:
src/tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/tests/.expect/ifcond.txt

    radb6a4f1 rd56cc219  
    22x != 0 && y != 0 correct
    33x == y correct
     4s.i < 4 correct
  • src/tests/ifcond.c

    radb6a4f1 rd56cc219  
    99// Author           : Peter A. Buhr
    1010// Created On       : Sat Aug 26 10:13:11 2017
    11 // Last Modified By : Rob Schluntz
    12 // Last Modified On : Fri Sep 01 15:22:19 2017
    13 // Update Count     : 14
     11// Last Modified By : Peter A. Buhr
     12// Last Modified On : Sat Jun  2 09:55:02 2018
     13// Update Count     : 15
    1414//
    1515
     
    4040                sout | "x != y incorrect" | endl;
    4141        } // if
     42
     43        if ( struct S { int i; } s = { 3 }; s.i < 4 ) {
     44                sout | "s.i < 4 correct" | endl;
     45        } else {
     46                sout | "s.i >= 4 incorrect" | endl;
     47        } // if
    4248} // main
    4349
Note: See TracChangeset for help on using the changeset viewer.