]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/pr84670-4.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / pr84670-4.c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fwrapv" } */
3 /* { dg-require-effective-target ptr_eq_long } */
4
5 char *a;
6 int 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 }