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