source: src/examples/control_structures.c @ 76f2e97f

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newstringwith_gc
Last change on this file since 76f2e97f was 843054c2, checked in by Peter A. Buhr <pabuhr@…>, 9 years ago

licencing: seventh groups of files

  • Property mode set to 100644
File size: 817 bytes
Line 
1int main() {
2  L1: {
3      L2: switch ( 3_333_333 ) {        // underscores in constant
4          case 1,2,3:                   // 4~8, 4...8 not working
5          L3: for ( ;; ) {
6              L4: for ( ;; ) {
7                    break L1;           // labelled break
8                    break L2;
9                    break L3;
10                    break L4;
11#if 0
12                    continue L1;        // labelled continue
13                    continue L2;
14                    continue L3;
15                    continue L4;
16#endif
17                } // for
18            } // for
19            break;
20          default:
21            break L1;
22        } // switch
23        3;
24        int i, j;
25        choose ( 7 ) {
26          case 1,2,3:
27            i = 3;
28            fallthru;
29          case 4,5,6:
30            j = 3;
31          default: ;
32        } // choose
33    } // block
34
35#if 0
36    try {
37        int i = 3;
38    } catch( int ) {
39    } catch( double ) {
40    } catch( ... ) {
41    } finally {
42    } // try
43#endif
44
45} // main
46
47// Local Variables: //
48// compile-command: "../../bin/cfa control_structures.c" //
49// End: //
Note: See TracBrowser for help on using the repository browser.