Changeset 10dc7491 for src/tests/Enum.c


Ignore:
Timestamp:
Jun 22, 2016, 4:35:32 PM (8 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
8b52686
Parents:
6bc4734
Message:

add more tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/Enum.c

    r6bc4734 r10dc7491  
    11//Testing enum declaration
    2 enum Colors {
     2enum Colours {
    33        Red,
    44        Yellow,
     
    1010};
    1111
     12enum Colours c1;
     13Colours c2;
     14
    1215void f( void ) {
    1316        enum Fruits {
     
    1720                Mango
    1821        } fruit = Mango;
     22        enum Fruits f1;
     23        Fruits f2;
    1924}
    2025
    2126//Dummy main
    22 int main(int argc, char const *argv[])
    23 {
    24         return 0;
     27int main(int argc, char const *argv[]) {
    2528}
Note: See TracChangeset for help on using the changeset viewer.