repo.or.cz
/
tinycc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Turn on a implicit-function-declaration warning by default.
[tinycc.git]
/
tests
/
tests2
/
39_typedef.c
blob
79ab58b7993c4eac7996e77d70faadf0c99a925d
1
#include <stdio.h>
2
3
typedef
int
MyInt
;
4
5
struct
FunStruct
6
{
7
int
i
;
8
int
j
;
9
};
10
11
typedef
struct
FunStruct MyFunStruct
;
12
13
typedef
MyFunStruct
*
MoreFunThanEver
;
14
15
int
main
()
16
{
17
MyInt a
=
1
;
18
printf
(
"%d
\n
"
,
a
);
19
20
MyFunStruct b
;
21
b
.
i
=
12
;
22
b
.
j
=
34
;
23
printf
(
"%d,%d
\n
"
,
b
.
i
,
b
.
j
);
24
25
MoreFunThanEver c
= &
b
;
26
printf
(
"%d,%d
\n
"
,
c
->
i
,
c
->
j
);
27
28
return
0
;
29
}
30
31
/* vim: set expandtab ts=4 sw=3 sts=3 tw=80 :*/