- File:
-
- 1 edited
-
src/examples/control_structures.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/examples/control_structures.c
r86bd7c1f rbe5aa1b 1 //2 // Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo3 //4 // The contents of this file are covered under the licence agreement in the5 // file "LICENCE" distributed with Cforall.6 //7 // control_structures.c --8 //9 // Author : Richard C. Bilson10 // Created On : Wed May 27 17:56:53 201511 // Last Modified By : Peter A. Buhr12 // Last Modified On : Wed May 27 18:07:42 201513 // Update Count : 114 //15 16 1 int main() { 17 2 L1: { 18 L2: switch ( 3_333_333 ) { // underscores in constant19 case 1,2,3: // 4~8, 4...8 not working3 L2: switch ( 3_333_333 ) { // underscores in constant 4 case 1,2,3: // 4~8, 4...8 not working 20 5 L3: for ( ;; ) { 21 6 L4: for ( ;; ) { 22 break L1; // labelled break7 break L1; // labelled break 23 8 break L2; 24 9 break L3; 25 10 break L4; 26 11 27 // continue L1;// labelled continue - should be an error28 // continue L2;// should be an error12 // continue L1; // labelled continue - should be an error 13 // continue L2; // should be an error 29 14 continue L3; 30 15 continue L4; … … 60 45 61 46 // Local Variables: // 62 // tab-width: 4 // 63 // compile-command: "cfa control_structures.c" // 47 // compile-command: "../../bin/cfa control_structures.c" // 64 48 // End: //
Note:
See TracChangeset
for help on using the changeset viewer.