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