ADT
        arm-eh
        ast-experimental
        enum
        forall-pointer-decay
        jacob/cs343-translation
        new-ast-unique-expr
        pthread-emulation
        qualifiedEnum
      
      
        
          | Last change
 on this file since 4f649cb was             66812dd, checked in by Peter A. Buhr <pabuhr@…>, 5 years ago | 
        
          | 
convert tests to always print output (no empty .expect files)
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            353 bytes | 
      
      
| Rev | Line |  | 
|---|
| [62edde5] | 1 | //Testing enum declaration | 
|---|
| [10dc7491] | 2 | enum Colours { | 
|---|
| [62edde5] | 3 | Red, | 
|---|
|  | 4 | Yellow, | 
|---|
|  | 5 | Pink, | 
|---|
|  | 6 | Blue, | 
|---|
|  | 7 | Purple, | 
|---|
|  | 8 | Orange, | 
|---|
|  | 9 | Green | 
|---|
|  | 10 | }; | 
|---|
|  | 11 |  | 
|---|
| [10dc7491] | 12 | enum Colours c1; | 
|---|
|  | 13 | Colours c2; | 
|---|
|  | 14 |  | 
|---|
| [62edde5] | 15 | void f( void ) { | 
|---|
|  | 16 | enum Fruits { | 
|---|
|  | 17 | Apple, | 
|---|
|  | 18 | Banana, | 
|---|
|  | 19 | Pear, | 
|---|
|  | 20 | Mango | 
|---|
|  | 21 | } fruit = Mango; | 
|---|
| [10dc7491] | 22 | enum Fruits f1; | 
|---|
|  | 23 | Fruits f2; | 
|---|
| [62edde5] | 24 | } | 
|---|
|  | 25 |  | 
|---|
|  | 26 | //Dummy main | 
|---|
| [10dc7491] | 27 | int main(int argc, char const *argv[]) { | 
|---|
| [66812dd] | 28 | printf( "done\n" );                             // non-empty .expect file | 
|---|
| [62edde5] | 29 | } | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.