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
string
with_gc
Last change
on this file since f6d7e0f was b1d6dd5, checked in by Peter A. Buhr <pabuhr@…>, 10 years ago |
fix parsing error for EOF message, change cfa-ccp -x flag to -v, regression testing third attempt: consolidate example programs
|
-
Property mode
set to
100644
|
File size:
1.4 KB
|
Rev | Line | |
---|
[b1d6dd5] | 1 | enum Colors
|
---|
| 2 | with members
|
---|
| 3 | Red: const instance of enum Colors
|
---|
| 4 | Yellow: const instance of enum Colors
|
---|
| 5 | Pink: const instance of enum Colors
|
---|
| 6 | Blue: const instance of enum Colors
|
---|
| 7 | Purple: const instance of enum Colors
|
---|
| 8 | Orange: const instance of enum Colors
|
---|
| 9 | Green: const instance of enum Colors
|
---|
| 10 |
|
---|
| 11 | f: function
|
---|
| 12 | returning
|
---|
| 13 | nothing
|
---|
| 14 | with body
|
---|
| 15 | CompoundStmt
|
---|
| 16 | Declaration of enum Fruits
|
---|
| 17 | with members
|
---|
| 18 | Apple: const instance of enum Fruits
|
---|
| 19 | Banana: const instance of enum Fruits
|
---|
| 20 | Pear: const instance of enum Fruits
|
---|
| 21 | Mango: const instance of enum Fruits
|
---|
| 22 |
|
---|
| 23 | Declaration of fruit: instance of enum Fruits with initializer
|
---|
| 24 | Simple Initializer: Cast of:
|
---|
| 25 | Variable Expression: Mango: const instance of enum Fruits
|
---|
| 26 |
|
---|
| 27 | to:
|
---|
| 28 | instance of enum Fruits
|
---|
| 29 | with environment:
|
---|
| 30 | Types:
|
---|
| 31 | Non-types:
|
---|
| 32 |
|
---|
| 33 |
|
---|
| 34 | enum Colors
|
---|
| 35 | {
|
---|
| 36 | __Red__C7eColors,
|
---|
| 37 | __Yellow__C7eColors,
|
---|
| 38 | __Pink__C7eColors,
|
---|
| 39 | __Blue__C7eColors,
|
---|
| 40 | __Purple__C7eColors,
|
---|
| 41 | __Orange__C7eColors,
|
---|
| 42 | __Green__C7eColors,
|
---|
| 43 | }
|
---|
| 44 | ;
|
---|
| 45 | void __f__F__(void){
|
---|
| 46 | enum Fruits
|
---|
| 47 | {
|
---|
| 48 | __Apple__C7eFruits,
|
---|
| 49 | __Banana__C7eFruits,
|
---|
| 50 | __Pear__C7eFruits,
|
---|
| 51 | __Mango__C7eFruits,
|
---|
| 52 | }
|
---|
| 53 | ;
|
---|
| 54 | enum Fruits __fruit__7eFruits = ((enum Fruits )__Mango__C7eFruits);
|
---|
| 55 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.