source: translator/Tests/Syntax/Exception.c @ a08ba92

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 a08ba92 was 51b7345, checked in by Peter A. Buhr <pabuhr@…>, 10 years ago

initial commit

  • Property mode set to 100644
File size: 413 bytes
Line 
1int fred() {
2    int x;
3    throw 3;
4    throw x = 5;
5
6    try {
7    } catch( int i ) {}
8
9    try {
10        x/4;
11    } catch( int) {
12    } catch( int x ) {
13    } catch( struct { int i; } ) {
14    } catch( struct { int i; } x ) {
15    } catch( struct { int i; } *x ) {
16
17// Cforall extensions
18
19    } catch( * struct { int i; } ) {
20    } catch( * struct { int i; } x ) {
21    } catch( ... ) {
22//    } finally {
23    } // try
24}
Note: See TracBrowser for help on using the repository browser.