diff --git a/tcctest.c b/tcctest.c index 6f0e6a13..0d93af64 100644 --- a/tcctest.c +++ b/tcctest.c @@ -441,14 +441,21 @@ void enum_test() typedef int *my_ptr; +typedef int mytype1; +typedef int mytype2; + void typedef_test() { my_ptr a; + mytype1 mytype2; int b; + a = &b; *a = 1234; printf("typedef:\n"); printf("a=%d\n", *a); + mytype2 = 2; + printf("mytype2=%d\n", mytype2); } void forward_test()