aboutsummaryrefslogtreecommitdiff
path: root/tcctest.c
diff options
context:
space:
mode:
Diffstat (limited to 'tcctest.c')
-rw-r--r--tcctest.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tcctest.c b/tcctest.c
index 6f0e6a1..0d93af6 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()