string literal initializers, global variable expressions

This commit is contained in:
pommicket 2022-02-02 09:49:56 -05:00
parent 22859ac40a
commit 92293e83ac
3 changed files with 50 additions and 4 deletions

View file

@ -30,6 +30,12 @@
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];
/*
NOTE: THIS MUST WORK
int x[] = {1,2,3}