Julian Seward a48daec904 Merge r6109:
Various minor changes to make these compile on AIX5.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6254
2006-10-17 01:26:12 +00:00

21 lines
384 B
C

#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 == 0xCAFEBABE) printf("1!\n");
if (g == 0xCAFEBABE) printf("2!\n");
if (ls == 0xCAFEBABE) printf("3!\n");
if (l == 0xCAFEBABE) printf("4!\n"); // complains
return 0;
}