Changes in src/tests/ifcond.c [96ff407:a01f7c94]
- File:
-
- 1 edited
-
src/tests/ifcond.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/tests/ifcond.c
r96ff407 ra01f7c94 1 // -*- Mode: C -*- 2 // 1 // 3 2 // Cforall Version 1.0.0 Copyright (C) 2017 University of Waterloo 4 3 // 5 4 // The contents of this file are covered under the licence agreement in the 6 5 // file "LICENCE" distributed with Cforall. 7 // 8 // ifcond.c -- 9 // 6 // 7 // ifcond.c -- 8 // 10 9 // Author : Peter A. Buhr 11 10 // Created On : Sat Aug 26 10:13:11 2017 12 // Last Modified By : Peter A. Buhr13 // Last Modified On : Tue Aug 29 08:25:02201714 // Update Count : 1 215 // 11 // Last Modified By : Rob Schluntz 12 // Last Modified On : Fri Sep 01 15:22:19 2017 13 // Update Count : 14 14 // 16 15 17 #include <fstream>16 #include <fstream> 18 17 19 18 int f( int r ) { return r; } … … 28 27 } // if 29 28 30 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 ) { 31 32 sout | "x != 0 && y != 0 correct" | endl; 32 } else {33 sout | "x != 0 &&y == 0 incorrect" | endl;33 } else { 34 sout | "x == 0 || y == 0 incorrect" | endl; 34 35 } // if 35 36
Note:
See TracChangeset
for help on using the changeset viewer.