1 /* { dg-do compile } */ 2 3 typedef struct 4 { 5 unsigned long bits[4]; 6 } nodemask_t; 7 8 struct cpuset 9 { 10 long flags; 11 nodemask_t mems_allowed; 12 struct cpuset *parent; 13 } b; 14 func1(unsigned long * p1,int p2)15void func1(unsigned long *p1, int p2) 16 { 17 p1[p2 - 1] = 0; 18 } 19 func2(nodemask_t * p1,int p2)20void func2(nodemask_t *p1, int p2) 21 { 22 func1(p1->bits, p2); 23 } 24 func3(void)25void func3(void) 26 { 27 /* This accesses b.flags. */ 28 func2(&b.mems_allowed, 0); 29 } 30