1 /* 2 bug3029630.c 3 */ 4 5 #include <testfwk.h> 6 7 struct a 8 { 9 void *a; 10 } s; 11 12 /* should not give 13 warning 196: pointer target lost const qualifier */ foo(const struct a * x)14void foo(const struct a *x) 15 { 16 void *const y = x->a; 17 (void)y; 18 } 19 testBug(void)20void testBug(void) 21 { 22 foo(&s); 23 } 24