Changeset 30d91e4 for tests/enum_tests
- Timestamp:
- Apr 14, 2022, 2:59:16 PM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
- Children:
- 365c8dcb
- Parents:
- d8c4fab
- Location:
- tests/enum_tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/enum_tests/.expect/typedIntEnum.txt
rd8c4fab r30d91e4 1 zero: 0, one: 1 1 0 2 1 3 1000 4 1001 5 2000 6 2001 7 2002 -
tests/enum_tests/typedIntEnum.cfa
rd8c4fab r30d91e4 3 3 enum(int) IntEnum { 4 4 zero, 5 one 5 one, 6 thousand = 1000, 7 thousand_one, 8 two_thousand = 2000, 9 two_thousand_one, 10 two_thousand_two 6 11 }; 7 12 8 13 int main() { 9 printf("zero: %d, one: %d\n", zero, one); 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); 10 21 return 0; 11 22 }
Note: See TracChangeset
for help on using the changeset viewer.