ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change
on this file since f2d51eb was
62edde5,
checked in by Thierry Delisle <tdelisle@…>, 8 years ago
|
added new tests folder to replace existing one
|
-
Property mode set to
100644
|
File size:
254 bytes
|
Line | |
---|
1 | //Testing enum declaration |
---|
2 | enum Colors { |
---|
3 | Red, |
---|
4 | Yellow, |
---|
5 | Pink, |
---|
6 | Blue, |
---|
7 | Purple, |
---|
8 | Orange, |
---|
9 | Green |
---|
10 | }; |
---|
11 | |
---|
12 | void f( void ) { |
---|
13 | enum Fruits { |
---|
14 | Apple, |
---|
15 | Banana, |
---|
16 | Pear, |
---|
17 | Mango |
---|
18 | } fruit = Mango; |
---|
19 | } |
---|
20 | |
---|
21 | //Dummy main |
---|
22 | int main(int argc, char const *argv[]) |
---|
23 | { |
---|
24 | return 0; |
---|
25 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.