diff options
| author | bellard <bellard> | 2006-10-28 14:28:33 +0000 |
|---|---|---|
| committer | bellard <bellard> | 2006-10-28 14:28:33 +0000 |
| commit | 365d0ad545341aa85e7ded45a7a4b0f8a49ced47 (patch) | |
| tree | 9f99ecdbd77441762fdee05ed7e2ee59226a09ab /tcctest.c | |
| parent | 52b7254b9c095e497601519a3da7309c1c22e95c (diff) | |
| download | tinycc-365d0ad545341aa85e7ded45a7a4b0f8a49ced47.tar.gz tinycc-365d0ad545341aa85e7ded45a7a4b0f8a49ced47.tar.bz2 | |
multiple typedef test
Diffstat (limited to 'tcctest.c')
| -rw-r--r-- | tcctest.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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() |
