ADTast-experimentalpthread-emulation
Last change
on this file since 9cd5bd2 was
30d91e4,
checked in by JiadaL <j82liang@…>, 2 years ago
|
Change the code gen for enum value. Hope it fixes the gcc compatibility problem
|
-
Property mode set to
100644
|
File size:
423 bytes
|
Rev | Line | |
---|
[a8ef59e] | 1 | #include <stdio.h> |
---|
| 2 | |
---|
| 3 | enum(int) IntEnum { |
---|
| 4 | zero, |
---|
[30d91e4] | 5 | one, |
---|
| 6 | thousand = 1000, |
---|
| 7 | thousand_one, |
---|
| 8 | two_thousand = 2000, |
---|
| 9 | two_thousand_one, |
---|
| 10 | two_thousand_two |
---|
[a8ef59e] | 11 | }; |
---|
| 12 | |
---|
| 13 | int main() { |
---|
[30d91e4] | 14 | printf("%d\n", zero); |
---|
| 15 | printf("%d\n", one); |
---|
| 16 | printf("%d\n", thousand); |
---|
| 17 | printf("%d\n", thousand_one); |
---|
| 18 | printf("%d\n", two_thousand); |
---|
| 19 | printf("%d\n", two_thousand_one); |
---|
| 20 | printf("%d\n", two_thousand_two); |
---|
[a8ef59e] | 21 | return 0; |
---|
| 22 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.