mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-06 19:54:18 +00:00
38 lines
374 B
C
38 lines
374 B
C
#include <stdio.h>
|
|
|
|
struct Foo
|
|
{
|
|
int a1 : 1;
|
|
int a2 : 1;
|
|
int a3 : 1;
|
|
int a4 : 1;
|
|
int a5 : 1;
|
|
int a6 : 1;
|
|
int a7 : 1;
|
|
int bleh : 1;
|
|
};
|
|
|
|
struct Foo* foo;
|
|
|
|
void set()
|
|
{
|
|
foo->bleh = 1;
|
|
}
|
|
|
|
void get()
|
|
{
|
|
if ( foo->bleh == 0 )
|
|
printf( "blieb\n" );
|
|
}
|
|
|
|
int main()
|
|
{
|
|
foo = malloc(sizeof(struct Foo));
|
|
set();
|
|
|
|
get();
|
|
|
|
return 0;
|
|
}
|
|
|