ADTast-experimentalpthread-emulation
Last change
on this file since f403c46 was
30d91e4,
checked in by JiadaL <j82liang@…>, 3 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
|
Line | |
---|
1 | #include <stdio.h> |
---|
2 | |
---|
3 | enum(int) IntEnum { |
---|
4 | zero, |
---|
5 | one, |
---|
6 | thousand = 1000, |
---|
7 | thousand_one, |
---|
8 | two_thousand = 2000, |
---|
9 | two_thousand_one, |
---|
10 | two_thousand_two |
---|
11 | }; |
---|
12 | |
---|
13 | int main() { |
---|
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); |
---|
21 | return 0; |
---|
22 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.