1 /* { dg-do compile } */ 2 /* { dg-options "-O2 -fwrapv" } */ 3 /* { dg-require-effective-target ptr_eq_long } */ 4 5 char *a; b(void)6int b(void) 7 { 8 long d; 9 if (a) { 10 char c; 11 while ((c = *a) && !((unsigned)c - '0' <= 9) && c != ',' && c != '-' 12 && c != '+') 13 ++a; 14 d = (long)a; 15 } 16 if (*a) 17 return d; 18 } 19