Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/ifcond.c

    r96ff407 ra01f7c94  
    1 //                               -*- Mode: C -*-
    2 //
     1//
    32// Cforall Version 1.0.0 Copyright (C) 2017 University of Waterloo
    43//
    54// The contents of this file are covered under the licence agreement in the
    65// file "LICENCE" distributed with Cforall.
    7 // 
    8 // ifcond.c -- 
    9 // 
     6//
     7// ifcond.c --
     8//
    109// Author           : Peter A. Buhr
    1110// Created On       : Sat Aug 26 10:13:11 2017
    12 // Last Modified By : Peter A. Buhr
    13 // Last Modified On : Tue Aug 29 08:25:02 2017
    14 // Update Count     : 12
    15 // 
     11// Last Modified By : Rob Schluntz
     12// Last Modified On : Fri Sep 01 15:22:19 2017
     13// Update Count     : 14
     14//
    1615
    17 #include<fstream>
     16#include <fstream>
    1817
    1918int f( int r ) { return r; }
     
    2827        } // if
    2928
    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 ) {
    3132                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;
    3435        } // if
    3536
Note: See TracChangeset for help on using the changeset viewer.