Changeset 8bb86ce for tests/enum_tests
- Timestamp:
- Jan 13, 2023, 4:29:57 PM (3 years ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- d61d034
- Parents:
- 8fcf921
- Location:
- tests/enum_tests
- Files:
-
- 2 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/enum_tests/.expect/typedIntEnum.txt
r8fcf921 r8bb86ce 1 0 2 1 3 1000 4 1001 5 2000 6 2001 7 2002 1 0=0 2 1=1 3 1000=1000 4 1001=1001 5 2000=2000 6 2001=2001 7 2002=2002 -
tests/enum_tests/pointerEnum.cfa
r8fcf921 r8bb86ce 11 11 int main() { 12 12 E * v = First; 13 sout | "v: " | e.x;13 // sout | "v: " | e.x; 14 14 } -
tests/enum_tests/typedIntEnum.cfa
r8fcf921 r8bb86ce 12 12 13 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);14 printf("0=%d\n", zero); 15 printf("1=%d\n", one); 16 printf("1000=%d\n", thousand); 17 printf("1001=%d\n", thousand_one); 18 printf("2000=%d\n", two_thousand); 19 printf("2001=%d\n", two_thousand_one); 20 printf("2002=%d\n", two_thousand_two); 21 21 return 0; 22 22 }
Note:
See TracChangeset
for help on using the changeset viewer.