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

Last change on this file since a57ad8a 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
RevLine 
[1725989]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.