mirror of
https://github.com/mirror/tinycc.git
synced 2025-03-02 08:20:06 +08:00
multiple typedef test
This commit is contained in:
parent
52b7254b9c
commit
365d0ad545
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user