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 29db723 was             e9145a3, checked in by Andrew Beach <ajbeach@…>, 8 years ago           | 
        
        
          | 
             
Updated exception tests to exception structures. Should be re-orginized still. 
 
           | 
        
        
          
            
              - 
Property                 mode
 set to                 
100644
               
             
           | 
        
        
          | 
            File size:
            316 bytes
           | 
        
      
      
| Line |   | 
|---|
| 1 | // Test that __attribute__((cleanup(...))) is working.
 | 
|---|
| 2 | 
 | 
|---|
| 3 | #include <stdio.h>
 | 
|---|
| 4 | #include "except-mac.h"
 | 
|---|
| 5 | TRIVIAL_EXCEPTION(myth)
 | 
|---|
| 6 | 
 | 
|---|
| 7 | int main (int argc, char * argv[]) {
 | 
|---|
| 8 |         try {
 | 
|---|
| 9 |                 try {
 | 
|---|
| 10 |                         printf("throw [");
 | 
|---|
| 11 |                         THROW(&(myth){});
 | 
|---|
| 12 |                 } finally {
 | 
|---|
| 13 |                         printf("] unwind <");
 | 
|---|
| 14 |                 }
 | 
|---|
| 15 |         } catch (myth * error) {
 | 
|---|
| 16 |                 printf("> catch\n");
 | 
|---|
| 17 |         }
 | 
|---|
| 18 | }
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.