Mercurial > hg > CbC > CbC_gcc
diff gcc/testsuite/gcc.dg/torture/pr87176.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gcc/testsuite/gcc.dg/torture/pr87176.c Thu Oct 25 07:37:49 2018 +0900 @@ -0,0 +1,28 @@ +/* { dg-do run } */ + +int a, b, c; + +int main () +{ + int d = a = 0; + while (1) + { + a = a ^ 6; + if (!a) + break; + if (d) + goto L; + d = a; + for (b = 0; b < 2; b++) + { + const int *f[3] = { &c }; + const int **g[] = { &f[2] }; + int h = ~d; + if (d) + L: + if (h > 1) + continue; + } + } + return 0; +}