From 365d0ad545341aa85e7ded45a7a4b0f8a49ced47 Mon Sep 17 00:00:00 2001 From: bellard Date: Sat, 28 Oct 2006 14:28:33 +0000 Subject: [PATCH] multiple typedef test --- tcctest.c | 7 +++++++ 1 file changed, 7 insertions(+) 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() -- 2.11.4.GIT