1 2 3 4 5 6 7 8 9 10
/* Test for overflow in NULL pointer constant. */ /* { dg-do compile } */ #include <limits.h> void *p = 0; void *q = 0 * (INT_MAX + 1); // { dg-error "invalid conversion" } // { dg-warning "integer overflow in expression" "" { target *-*-* } 8 }