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 092528b was             ca26509, checked in by Peter A. Buhr <pabuhr@…>, 9 years ago           | 
        
        
          | 
             
relocate and delete example programs under Test directory to test/examples directories 
 
           | 
        
        
          
            
              - 
Property                 mode
 set to                 
100644
               
             
           | 
        
        
          | 
            File size:
            713 bytes
           | 
        
      
      
| Line |   | 
|---|
| 1 | // Cforall extensions
 | 
|---|
| 2 | 
 | 
|---|
| 3 | int * x11 = 0, x12 = 0;
 | 
|---|
| 4 | int * x21 = 0, x22 = 0;
 | 
|---|
| 5 | 
 | 
|---|
| 6 | [20] int y1, y2 = { 1, 2, 3 };
 | 
|---|
| 7 | 
 | 
|---|
| 8 | // designators
 | 
|---|
| 9 | 
 | 
|---|
| 10 | struct {
 | 
|---|
| 11 |         [int] w;
 | 
|---|
| 12 | } a = { .w : [2] };
 | 
|---|
| 13 | 
 | 
|---|
| 14 | struct { int a[3], b; } w [] = { [0].a : {1}, [0].b : 3, [1].a[0] : 2 };
 | 
|---|
| 15 | 
 | 
|---|
| 16 | struct {
 | 
|---|
| 17 |         int f1, f2, f3;
 | 
|---|
| 18 |         struct { int g1, g2, g3; } f4[4];
 | 
|---|
| 19 | } v7 = {
 | 
|---|
| 20 |   .f1 : 4,
 | 
|---|
| 21 |   f2 : 3,
 | 
|---|
| 22 |   .f4[2] : {
 | 
|---|
| 23 |           .g1 : 3,
 | 
|---|
| 24 |           g3 : 0,
 | 
|---|
| 25 |         },
 | 
|---|
| 26 |   .f4[3].g3 : 7,
 | 
|---|
| 27 | };
 | 
|---|
| 28 | 
 | 
|---|
| 29 | struct point { int x; int z; struct {int y1, y2, y3;} y; int w;};
 | 
|---|
| 30 | struct quintet { int v, w, x, y, z;};
 | 
|---|
| 31 | 
 | 
|---|
| 32 | int main() {
 | 
|---|
| 33 |         struct point p1 = { x : 3 };
 | 
|---|
| 34 |         struct point p2 = { 3, 4 };
 | 
|---|
| 35 |         struct point p3 = { .[x,z] : 5, y : { .[y3,y1] : 6, 17 } };
 | 
|---|
| 36 |         struct point p4 = { w : 5, 4 };
 | 
|---|
| 37 | }
 | 
|---|
| 38 | 
 | 
|---|
| 39 | // Local Variables: //
 | 
|---|
| 40 | // tab-width: 4 //
 | 
|---|
| 41 | // End: //
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.