ADT
        aaron-thesis
        arm-eh
        ast-experimental
        cleanup-dtors
        ctor
        deferred_resn
        demangler
        enum
        forall-pointer-decay
        gc_noraii
        jacob/cs343-translation
        jenkins-sandbox
        memory
        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 0f8e4ac was             62edde5, checked in by Thierry Delisle <tdelisle@…>, 9 years ago | 
        
          | 
added new tests folder to replace existing one
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            768 bytes | 
      
      
| Line |  | 
|---|
| 1 | //Constant test declaration | 
|---|
| 2 | // Cforall extension | 
|---|
| 3 |  | 
|---|
| 4 | // value | 
|---|
| 5 |  | 
|---|
| 6 | int 0; | 
|---|
| 7 | const int 0; | 
|---|
| 8 | static const int 0; | 
|---|
| 9 | int 1; | 
|---|
| 10 | const int 1; | 
|---|
| 11 | static const int 1; | 
|---|
| 12 | int 0, 1; | 
|---|
| 13 | const int 0, 1; | 
|---|
| 14 | int (0), (1); | 
|---|
| 15 | int ((0)), ((1)); | 
|---|
| 16 | static const int 0, 1; | 
|---|
| 17 | struct { int i; } 0; | 
|---|
| 18 | const struct { int i; } 1; | 
|---|
| 19 | static const struct { int i; } 1; | 
|---|
| 20 |  | 
|---|
| 21 | // pointer | 
|---|
| 22 |  | 
|---|
| 23 | int *0, *1; | 
|---|
| 24 | int *(0), *(1); | 
|---|
| 25 | int (*0), (*1); | 
|---|
| 26 | int ((*0)), ((*1)); | 
|---|
| 27 | int * const (0), * const 1; | 
|---|
| 28 | int (* const 0), (* const 1); | 
|---|
| 29 | int ((* const 0)), ((* const 1)); | 
|---|
| 30 | struct { int i; } *0; | 
|---|
| 31 |  | 
|---|
| 32 | // Cforall style | 
|---|
| 33 |  | 
|---|
| 34 | * int x, 0; | 
|---|
| 35 | const * int x, 0; | 
|---|
| 36 | static const * int x, 0; | 
|---|
| 37 | * struct { int i; } 0; | 
|---|
| 38 | const * struct { int i; } 0; | 
|---|
| 39 | static const * struct { int i; } 0; | 
|---|
| 40 | static * int x, 0; | 
|---|
| 41 | static const * int x, 0; | 
|---|
| 42 | const * * int x, 0; | 
|---|
| 43 |  | 
|---|
| 44 | int main() { | 
|---|
| 45 | int 1, * 0; | 
|---|
| 46 | * int x, 0; | 
|---|
| 47 | } | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.