source: doc/theses/jiada_liang_MMath/test3.cfa @ 9476549

Last change on this file since 9476549 was 1725989, checked in by Peter A. Buhr <pabuhr@…>, 5 months ago

add enumeration test programs for different programming languages

  • Property mode set to 100644
File size: 182 bytes
Line 
1enum Week ! { Mon, Tue, Wed, Thu = 10, Fri, Sat, Sun };
2enum RGB ! { Red, Green, Blue };
3void foo() {
4        Week week = Week.Mon;
5        week = Week.Sat;
6        RGB rgb = RGB.Red;
7        rgb = RGB.Blue;
8}
Note: See TracBrowser for help on using the repository browser.