* testsuite/libgomp.fortran/vla7.f90: Add -w to options.
[official-gcc.git] / gcc / testsuite / gcc.dg / Wcxx-compat-1.c
blob91500421e852d8c23b622a3c8163cdfde4615b1d
1 /* PR c/21759 */
2 /* { dg-options "-Wc++-compat" } */
4 int
5 main(void)
7 void *p = 0;
8 int *q = p; /* { dg-warning "not permitted" } */
9 double* t = (void *)0;
10 return p != q;