![zik.saleeba](/assets/img/avatar_default.png)
Changed to more strict handling of main() - if it's not defined in main-calling mode then the program will crash rather than ignoring the problem. Tests changed to correspond to this approach. git-svn-id: http://picoc.googlecode.com/svn/trunk@479 21eae674-98b7-11dd-bd71-f92a316d2d60
27 lines
332 B
C
27 lines
332 B
C
#include <stdio.h>
|
|
|
|
typedef int MyInt;
|
|
|
|
MyInt a = 1;
|
|
printf("%d\n", a);
|
|
|
|
struct FunStruct
|
|
{
|
|
int i;
|
|
int j;
|
|
};
|
|
|
|
typedef struct FunStruct MyFunStruct;
|
|
|
|
MyFunStruct b;
|
|
b.i = 12;
|
|
b.j = 34;
|
|
printf("%d,%d\n", b.i, b.j);
|
|
|
|
typedef MyFunStruct *MoreFunThanEver;
|
|
|
|
MoreFunThanEver c = &b;
|
|
printf("%d,%d\n", c->i, c->j);
|
|
|
|
void main() {}
|