source: src/tests/Enum.c@ 23b6f4d7

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 with_gc
Last change on this file since 23b6f4d7 was 62edde5, checked in by Thierry Delisle <tdelisle@…>, 9 years ago

added new tests folder to replace existing one

  • Property mode set to 100644
File size: 254 bytes
Line 
1//Testing enum declaration
2enum Colors {
3 Red,
4 Yellow,
5 Pink,
6 Blue,
7 Purple,
8 Orange,
9 Green
10};
11
12void f( void ) {
13 enum Fruits {
14 Apple,
15 Banana,
16 Pear,
17 Mango
18 } fruit = Mango;
19}
20
21//Dummy main
22int main(int argc, char const *argv[])
23{
24 return 0;
25}
Note: See TracBrowser for help on using the repository browser.