- Timestamp:
- Aug 2, 2016, 9:30:34 AM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 155cce0f
- Parents:
- e21c72d (diff), 79f64f1 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/switch.c
re21c72d re7b2559 10 10 // Created On : Tue Jul 12 06:50:22 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Jul 12 18:02:23201613 // Update Count : 2212 // Last Modified On : Sat Jul 30 14:41:32 2016 13 // Update Count : 30 14 14 // 15 15 … … 33 33 } // switch 34 34 35 // switch (3 ) {36 //int j;37 //case 3:38 //break;39 //case 4:40 //j = 0;41 //}35 switch ( 3 ) { 36 int j; 37 case 3: 38 break; 39 case 4: 40 j = 0; 41 } 42 42 43 43 switch ( i ) { … … 49 49 default: 50 50 i = 3; 51 case 3:51 case 19: 52 52 case 'A' ... 'Z': 53 case 5... 6:54 case 2 , 4:53 case 1 ... 6: 54 case 20, 30: 55 55 j = 3; 56 56 f( 3 ); … … 78 78 struct S { int i; }; 79 79 S s; 80 case 3:80 case 19: 81 81 case 'A' ... 'Z': 82 case 5... 6:83 case 2 , 4, 7:82 case 0 ... 6: 83 case 20, 30, 40: 84 84 i = 3; 85 85 f( 3 );
Note: See TracChangeset
for help on using the changeset viewer.