Unified · Split
| @@ -441,14 +441,21 @@ void enum_test() · 440 unmodified lines | |||
| 441 | 441 | ||
| 442 | typedef int *my_ptr; | 442 | typedef int *my_ptr; |
| 443 | 443 | ||
| 444 | typedef int mytype1; | ||
| 445 | typedef int mytype2; | ||
| 446 | |||
| 444 | void typedef_test() | 447 | void typedef_test() |
| 445 | { | 448 | { |
| 446 | my_ptr a; | 449 | my_ptr a; |
| 450 | mytype1 mytype2; | ||
| 447 | int b; | 451 | int b; |
| 452 | |||
| 448 | a = &b; | 453 | a = &b; |
| 449 | *a = 1234; | 454 | *a = 1234; |
| 450 | printf("typedef:\n"); | 455 | printf("typedef:\n"); |
| 451 | printf("a=%d\n", *a); | 456 | printf("a=%d\n", *a); |
| 457 | mytype2 = 2; | ||
| 458 | printf("mytype2=%d\n", mytype2); | ||
| 452 | } | 459 | } |
| 453 | 460 | ||
| 454 | void forward_test() | 461 | void forward_test() |