1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
typedef struct { } mem_attrs; int main(void) { return 0; } void *malloc(unsigned long size); void *memcpy(void *dest, const void *src, unsigned long n); static mem_attrs * get_mem_attrs () { void **slot; *slot = malloc (3); memcpy (*slot, 0, 3); } void set_mem_attributes () { get_mem_attrs (); } void set_mem_alias_set () { get_mem_attrs (); }