1 /* PR c/21759 */ 2 /* { dg-options "-Wc++-compat" } */ 3 4 int main(void)5 main(void) 6 { 7 void *p = 0; 8 int *q = p; /* { dg-warning "not permitted" } */ 9 double* t = (void *)0; 10 return p != q; 11 } 12