ADT
aaron-thesis
arm-eh
ast-experimental
cleanup-dtors
ctor
deferred_resn
demangler
enum
forall-pointer-decay
gc_noraii
jacob/cs343-translation
jenkins-sandbox
memory
new-ast
new-ast-unique-expr
new-env
no_list
persistent-indexer
pthread-emulation
qualifiedEnum
resolv-new
string
with_gc
Last change
on this file since 2bae7307 was 843054c2, checked in by Peter A. Buhr <pabuhr@…>, 10 years ago |
licencing: seventh groups of files
|
-
Property mode
set to
100644
|
File size:
817 bytes
|
Line | |
---|
1 | int 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.