x86-asm: Implement clflush opcode
[tinycc.git] / tests / tests2 / 39_typedef.c
blob3878b9cac24c6445f492f2ded72d5104a3efe3d2
1 #include <stdio.h>
3 typedef int MyInt;
5 struct FunStruct
7 int i;
8 int j;
9 };
11 typedef struct FunStruct MyFunStruct;
13 typedef MyFunStruct *MoreFunThanEver;
15 int main()
17 MyInt a = 1;
18 printf("%d\n", a);
20 MyFunStruct b;
21 b.i = 12;
22 b.j = 34;
23 printf("%d,%d\n", b.i, b.j);
25 MoreFunThanEver c = &b;
26 printf("%d,%d\n", c->i, c->j);
28 return 0;
31 /* "If the specification of an array type includes any type qualifiers,
32 the element type is so-qualified, not the array type." */
34 typedef int A[3];
35 extern A const ca;
36 extern const A ca;
37 extern const int ca[3];
39 typedef A B[1][2];
40 extern B const cb;
41 extern const B cb;
42 extern const int cb[1][2][3];
44 extern B b;
45 extern int b[1][2][3];
47 /* vim: set expandtab ts=4 sw=3 sts=3 tw=80 :*/