blob: c423ebfef5c09f9eef924564e95e16ddc3a06d78 (
plain)
1
2
3
4
5
6
7
8
9
10
|
extern void my_func (int);
typedef struct {
int var;
} info_t;
extern void *_data_offs;
void test()
{
info_t *info = (info_t *) ((void *)((void *)1) + ((unsigned int)&_data_offs));
my_func(info->var == 0);
}
|