summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/Wcxx-compat-1.c
blob: 91500421e852d8c23b622a3c8163cdfde4615b1d (plain)
1
2
3
4
5
6
7
8
9
10
11
/* PR c/21759  */
/* { dg-options "-Wc++-compat" } */

int
main(void)
{
   void *p = 0;
   int *q = p;                  /* { dg-warning "not permitted" } */
   double* t = (void *)0;
   return p != q;
}