lang-bootstrap/05/main.c

49 lines
772 B
C
Raw Normal View History

2022-01-19 22:23:29 -05:00
/*typedef struct {
2022-01-19 11:57:42 -05:00
int i[41];
long double d;
} (*x)(void);
2022-01-26 18:00:47 -05:00
/* 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 x[sizeof(A)+sizeof"hello"]; */
/* typedef int y[sizeof(struct B)]; */
2022-01-26 18:00:47 -05:00
static unsigned int x;
static unsigned int y;
static unsigned int z[1000];
static unsigned int w;
2022-01-27 10:57:18 -05:00
2022-01-29 11:08:57 -05:00
typedef struct {
int x;
} Test;
int a = -138;
double f = 0;
2022-01-29 11:13:56 -05:00
void *p = 0;
2022-01-29 11:08:57 -05:00
int j = 3+7<<5, k = 123;
/*
NOTE: THIS MUST WORK
int x[] = {1,2,3}
sizeof x
*/