Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/ifcond.c

    ra01f7c94 r96ff407  
    1 //
     1//                               -*- Mode: C -*-
     2//
    23// Cforall Version 1.0.0 Copyright (C) 2017 University of Waterloo
    34//
    45// The contents of this file are covered under the licence agreement in the
    56// file "LICENCE" distributed with Cforall.
    6 //
    7 // ifcond.c --
    8 //
     7// 
     8// ifcond.c -- 
     9// 
    910// Author           : Peter A. Buhr
    1011// 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
    14 //
     12// Last Modified By : Peter A. Buhr
     13// Last Modified On : Tue Aug 29 08:25:02 2017
     14// Update Count     : 12
     15// 
    1516
    16 #include <fstream>
     17#include<fstream>
    1718
    1819int f( int r ) { return r; }
     
    2728        } // if
    2829
    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
    3231                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;
    3534        } // if
    3635
Note: See TracChangeset for help on using the changeset viewer.