mirror of
https://github.com/frida/tinycc
synced 2025-03-04 06:51:25 +03: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…
x
Reference in New Issue
Block a user