lang-bootstrap/05/main.c

97 lines
1.9 KiB
C
Raw Normal View History

static int g;
int f(void) {
2022-02-06 13:42:43 -05:00
while (g+10 == 17){
while (g+100==1234){
}
}
2022-02-06 13:52:26 -05:00
do {
break;
continue;
}while(0);
2022-02-04 22:36:22 -05:00
lbl1:break;;goto blah;
case -1-3:
2022-02-04 19:31:45 -05:00
continue;a:break;return;return 6+3<<sizeof(int);
2022-02-04 22:36:22 -05:00
goto lbl1;
case 77:;return 92834;
return g;
2022-02-05 15:50:49 -05:00
static int x = 0x12345;
return x;
}
int h(void) {
2022-02-05 18:41:01 -05:00
int y, r[3], s;
char d, e[5], f, g, *p;
int z = 3, R=12+459834-g;
int x[] = {1,2,3,4,5};
struct {
char a,b;
} P[] = {1,2,3,4,5};
2022-02-05 19:41:45 -05:00
int *Y = x;
static int marker = 0x12345678;
return 5;
}
2022-02-03 19:19:12 -05:00
2022-02-05 15:50:49 -05:00
/* typedef int AA[sizeof x]; */
2022-02-03 19:19:12 -05:00
/* typedef struct { */
/* int i[41]; */
/* long double d; */
/* } (*x___)(void); */
/* */
/* typedef enum X { */
/* R,S,T */
/* } *Foo[sizeof(unsigned long)]; */
/* typedef int A___[T]; */
/* */
/* typedef struct A { */
/* int x, y; */
/* long double c; */
/* unsigned long d; */
/* char e[3]; */
/* long f; */
/* } A; */
/* */
/* typedef union B{ */
/* int x; */
/* struct { */
/* int y; */
/* struct {long z; } c; */
/* } c; */
/* }B; */
/* */
/* typedef int QQQ[sizeof(A)+sizeof"hello"]; */
/* typedef int RRR[sizeof(struct B)]; */
/* */
/* static unsigned int x={55}; */
/* static char *s = "hello"; */
/* static char *t = "goodbye"; */
/* static char u[8] = "hellothe"; */
/* static char v[100] = "re my"; */
/* static char w[] = "friendly"; */
/* static char x_[] = "hi"; */
/* typedef int A_[sizeof x_ + sizeof u]; */
/* */
/* static int a[5] = {1,2,3}; */
/* static char b[6][7] = {{'a'},{'b'},{'c'},{'d'},{'e'}}; */
/* static char __b[][7] = {{'a'},"hello",'r'}; */
/* static int _u = sizeof __b; */
/* */
/* struct { */
/* int a; */
/* long b; */
/* } x1[] = {0x1234567890, 1ul<<60|1ul<<3, 77}; */
/* int y1 = 0x12345678; */
/* */
/* struct { */
/* int x[2], y; */
/* } test[] = {3, 5,0x1234,0x4321}; */
/* typedef int Blah[sizeof((B *)0)->c.y]; */
/* unsigned marker = 0xdeadbeef; */
/* */
/* typedef int (*FUNCTION)(void); */
/* typedef int AAAA[sizeof*****((FUNCTION)0)]; */
2022-02-03 19:19:12 -05:00
/* typedef int X[sizeof(int)+4]; */