struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug3029630.c
blob632c3a619c5dced34e5fbb5210e7f929e8d76c37
1 /*
2 bug3029630.c
3 */
5 #include <testfwk.h>
7 struct a
9 void *a;
10 } s;
12 /* should not give
13 warning 196: pointer target lost const qualifier */
14 void foo(const struct a *x)
16 void *const y = x->a;
17 (void)y;
20 void testBug(void)
22 foo(&s);