blob: 7dd0c93c0d65bb2145f63dc28c16a7820ce4a8cc [file] [log] [blame]
#include <stdio.h>
/* Static and global vars are inited to zero, non-static local vars aren't. */
int g;
static int gs;
int main(void)
{
int l;
static int ls;
if (gs == 0xDEADBEEF) printf("1!\n");
if (g == 0xDEADBEEF) printf("2!\n");
if (ls == 0xDEADBEEF) printf("3!\n");
if (l == 0xDEADBEEF) printf("4!\n"); // complains
return 0;
}