ADT
        arm-eh
        ast-experimental
        enum
        forall-pointer-decay
        jacob/cs343-translation
        jenkins-sandbox
        new-ast
        new-ast-unique-expr
        pthread-emulation
        qualifiedEnum
      
      
        
          | 
            Last change
 on this file since 0f5da65 was             200fcb3, checked in by Peter A. Buhr <pabuhr@…>, 7 years ago           | 
        
        
          | 
             
add auto newline to sout, change endl to nl 
 
           | 
        
        
          
            
              - 
Property                 mode
 set to                 
100644
               
             
           | 
        
        
          | 
            File size:
            282 bytes
           | 
        
      
      
| Line |   | 
|---|
| 1 | #include "pointer.h"
 | 
|---|
| 2 | 
 | 
|---|
| 3 | wrapper_t make_copy(wrapper_t copy) {
 | 
|---|
| 4 |         return copy;
 | 
|---|
| 5 | }
 | 
|---|
| 6 | 
 | 
|---|
| 7 | int main(int argc, char const *argv[]) {
 | 
|---|
| 8 |         wrapper_t p = wrap(6);
 | 
|---|
| 9 |         sout | nl | "test started";
 | 
|---|
| 10 |         wrapper_t p2 = p;
 | 
|---|
| 11 |         clear(&p);
 | 
|---|
| 12 |         p = p2;
 | 
|---|
| 13 |         wrapper_t p3 = make_copy(p2);
 | 
|---|
| 14 |         sout | nl | "test ended";
 | 
|---|
| 15 |         return 0;
 | 
|---|
| 16 | }
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.