Files
ftmemsim-valgrind/none/tests/bitfield1.c
Nicholas Nethercote afebe61b37 Files updated, added and removed in order to turn the ERASER branch into HEAD
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1086
2002-09-23 09:36:25 +00:00

20 lines
266 B
C

#include <malloc.h>
typedef
struct {
int x;
unsigned int y:1;
int z;
}
Fooble;
int main ( void )
{
Fooble* f = malloc(sizeof(Fooble));
f->x = 1;
f->z = 1;
f->y = (f == (Fooble*)17 ? 1 : 0);
return 0;
}