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 c20b0fea was             728df66, checked in by Peter A. Buhr <pabuhr@…>, 8 years ago           | 
        
        
          | 
             
more documentation name changes 
 
           | 
        
        
          
            
              - 
Property                 mode
 set to                 
100644
               
             
           | 
        
        
          | 
            File size:
            318 bytes
           | 
        
      
      
| Rev | Line |   | 
|---|
| [f92aa32] | 1 | #include <stdio.h>
 | 
|---|
 | 2 | typedef struct S {
 | 
|---|
 | 3 |   int x;
 | 
|---|
 | 4 | } S;
 | 
|---|
 | 5 | 
 | 
|---|
 | 6 | void _dtor_S(S * s);
 | 
|---|
 | 7 | //  {
 | 
|---|
 | 8 | //   printf("called destructor!\n");
 | 
|---|
 | 9 | // }
 | 
|---|
 | 10 | 
 | 
|---|
 | 11 | void _ctor_S(struct S *s);
 | 
|---|
 | 12 | //  {
 | 
|---|
 | 13 | //   s->x = 123;
 | 
|---|
 | 14 | // }
 | 
|---|
 | 15 | 
 | 
|---|
 | 16 | int main() {
 | 
|---|
 | 17 |   struct S _tmp3;
 | 
|---|
 | 18 |   __attribute__((cleanup(_dtor_S))) struct S _tmp2 = (_ctor_S(&_tmp2), _tmp2);
 | 
|---|
 | 19 |   printf("%d\n", _tmp2.x);
 | 
|---|
 | 20 | }
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.