source: src/Tests/Exception.c @ eff0cad0

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 eff0cad0 was b1d6dd5, checked in by Peter A. Buhr <pabuhr@…>, 9 years ago

fix parsing error for EOF message, change cfa-ccp -x flag to -v, regression testing third attempt: consolidate example programs

  • 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.