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 f7b9faf was             9c14ae9, checked in by Rob Schluntz <rschlunt@…>, 9 years ago | 
        
          | 
add thesis source
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            295 bytes | 
      
      
| Line |  | 
|---|
| 1 | int printf(const char *, ...); | 
|---|
| 2 |  | 
|---|
| 3 | struct A { int x, y; }; | 
|---|
| 4 | int f(struct A a, int z) { | 
|---|
| 5 | printf("%d %d %d\n", a.x, a.y, z); | 
|---|
| 6 | } | 
|---|
| 7 | int g(int * x) { | 
|---|
| 8 | if (x == 0) printf("NULL\n"); | 
|---|
| 9 | else printf("%d\n", *x); | 
|---|
| 10 | } | 
|---|
| 11 |  | 
|---|
| 12 | int main() { | 
|---|
| 13 | f((struct A){ 3, 4 }, (int){ 5 } = 10); | 
|---|
| 14 | g((int[]){ 1, 2, 3 }); | 
|---|
| 15 | g(&(int){ 0 }); | 
|---|
| 16 | } | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.