source: doc/theses/jiada_liang_MMath/test20.cfa @ 5aeb1a9

Last change on this file since 5aeb1a9 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: 184 bytes
RevLine 
[1725989]1int main() {
2//      enum { X = 3, Y = 3.5 };
3//      enum(char *) { Z = "abc" };
4        enum { X = 3, Y = 3.5, Z = "abc" };
5
6        int i = X;
7        double d = Y;
8        printf( "%g\n", d );
9        const char * str = Z;
10}
Note: See TracBrowser for help on using the repository browser.