source: src/tests/enum.c @ f3c1737

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change on this file since f3c1737 was e757af2, checked in by Thierry Delisle <tdelisle@…>, 8 years ago

renamed all tests to lower-case leading character

  • Property mode set to 100644
File size: 303 bytes
RevLine 
[62edde5]1//Testing enum declaration
[10dc7491]2enum Colours {
[62edde5]3        Red,
4        Yellow,
5        Pink,
6        Blue,
7        Purple,
8        Orange,
9        Green
10};
11
[10dc7491]12enum Colours c1;
13Colours c2;
14
[62edde5]15void 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]27int main(int argc, char const *argv[]) {
[62edde5]28}
Note: See TracBrowser for help on using the repository browser.