Changeset a01f7c94 for src/tests/ifcond.c
- Timestamp:
- Sep 1, 2017, 3:24:37 PM (7 years ago)
- 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, resolv-new, with_gc
- Children:
- 78a0b88
- Parents:
- 681c764
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/ifcond.c
r681c764 ra01f7c94 1 // 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2017 University of Waterloo 3 3 // 4 4 // The contents of this file are covered under the licence agreement in the 5 5 // file "LICENCE" distributed with Cforall. 6 // 7 // ifcond.c -- 8 // 6 // 7 // ifcond.c -- 8 // 9 9 // Author : Peter A. Buhr 10 10 // Created On : Sat Aug 26 10:13:11 2017 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Wed Aug 30 07:55:24201713 // Update Count : 1 314 // 11 // Last Modified By : Rob Schluntz 12 // Last Modified On : Fri Sep 01 15:22:19 2017 13 // Update Count : 14 14 // 15 15 16 #include <fstream>16 #include <fstream> 17 17 18 18 int f( int r ) { return r; } … … 27 27 } // if 28 28 29 if ( int x = 4, y = 0 ) { // FIXME && distribution 29 if ( int x = 4, y = 0 ) { 30 sout | "x != 0 && y != 0 incorrect" | endl; 31 } else if ( int x = 4, y = 1 ) { 30 32 sout | "x != 0 && y != 0 correct" | endl; 31 32 sout | "x != 0 &&y == 0 incorrect" | endl;33 } else { 34 sout | "x == 0 || y == 0 incorrect" | endl; 33 35 } // if 34 36
Note: See TracChangeset
for help on using the changeset viewer.