ADT
        aaron-thesis
        arm-eh
        ast-experimental
        cleanup-dtors
        deferred_resn
        demangler
        enum
        forall-pointer-decay
        jacob/cs343-translation
        jenkins-sandbox
        new-ast
        new-ast-unique-expr
        new-env
        no_list
        persistent-indexer
        pthread-emulation
        qualifiedEnum
        resolv-new
        with_gc
      
      
        
          | Last change
 on this file since ab16fc5 was             1d4580a, checked in by Peter A. Buhr <pabuhr@…>, 9 years ago | 
        
          | 
more refactoring of parser code
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            510 bytes | 
      
      
| Rev | Line |  | 
|---|
| [62edde5] | 1 | //Testing esceptions syntax | 
|---|
|  | 2 | int fred() { | 
|---|
|  | 3 | int x; | 
|---|
|  | 4 | throw 3; | 
|---|
|  | 5 | throw x = 5; | 
|---|
|  | 6 |  | 
|---|
|  | 7 | try { | 
|---|
|  | 8 | } catch( int i ) {} | 
|---|
|  | 9 |  | 
|---|
|  | 10 | try { | 
|---|
|  | 11 | x/4; | 
|---|
| [a0dcd2e] | 12 | } catch( int ) { | 
|---|
| [1d4580a] | 13 | } catch( float x ) { | 
|---|
| [62edde5] | 14 | } catch( struct { int i; } ) { | 
|---|
|  | 15 | } catch( struct { int i; } x ) { | 
|---|
|  | 16 | } catch( struct { int i; } *x ) { | 
|---|
|  | 17 |  | 
|---|
|  | 18 | // Cforall extensions | 
|---|
|  | 19 |  | 
|---|
|  | 20 | } catch( * struct { int i; } ) { | 
|---|
|  | 21 | } catch( * struct { int i; } x ) { | 
|---|
|  | 22 | } catch( ... ) { | 
|---|
| [1d4580a] | 23 | } finally { | 
|---|
| [62edde5] | 24 | } // try | 
|---|
|  | 25 | } | 
|---|
|  | 26 |  | 
|---|
|  | 27 | //Dummy main | 
|---|
|  | 28 | int main(int argc, char const *argv[]) | 
|---|
|  | 29 | { | 
|---|
|  | 30 | return 0; | 
|---|
|  | 31 | } | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.