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 50abab9 was             e757af2, checked in by Thierry Delisle <tdelisle@…>, 9 years ago           | 
        
        
          | 
             
renamed all tests to lower-case leading character 
 
           | 
        
        
          
            
              - 
Property                 mode
 set to                 
100644
               
             
           | 
        
        
          | 
            File size:
            303 bytes
           | 
        
      
      
| Line |   | 
|---|
| 1 | //Testing enum declaration
 | 
|---|
| 2 | enum Colours {
 | 
|---|
| 3 |         Red,
 | 
|---|
| 4 |         Yellow,
 | 
|---|
| 5 |         Pink,
 | 
|---|
| 6 |         Blue,
 | 
|---|
| 7 |         Purple,
 | 
|---|
| 8 |         Orange,
 | 
|---|
| 9 |         Green
 | 
|---|
| 10 | };
 | 
|---|
| 11 | 
 | 
|---|
| 12 | enum Colours c1;
 | 
|---|
| 13 | Colours c2;
 | 
|---|
| 14 | 
 | 
|---|
| 15 | void f( void ) {
 | 
|---|
| 16 |         enum Fruits {
 | 
|---|
| 17 |                 Apple,
 | 
|---|
| 18 |                 Banana,
 | 
|---|
| 19 |                 Pear,
 | 
|---|
| 20 |                 Mango
 | 
|---|
| 21 |         } fruit = Mango;
 | 
|---|
| 22 |         enum Fruits f1;
 | 
|---|
| 23 |         Fruits f2;
 | 
|---|
| 24 | }
 | 
|---|
| 25 | 
 | 
|---|
| 26 | //Dummy main
 | 
|---|
| 27 | int main(int argc, char const *argv[]) {
 | 
|---|
| 28 | }
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.