source: src/Tests/Expect-e/Enum.txt @ f5234f3

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newstringwith_gc
Last change on this file since f5234f3 was b1d6dd5, checked in by Peter A. Buhr <pabuhr@…>, 9 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
Line 
1enum 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
11f: 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
34enum 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;
45void __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.