Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr83581.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children |
rev | line source |
---|---|
131 | 1 /* PR tree-optimization/83581 */ |
2 /* { dg-do compile } */ | |
3 /* { dg-options "-O3 -fno-tree-copy-prop -fno-tree-loop-im" } */ | |
4 | |
5 int a, b, c; | |
6 | |
7 int | |
8 foo (int x) | |
9 { | |
10 int *d = &x; | |
11 while (a < 1) | |
12 { | |
13 for (b = 0; b < 2; ++b) | |
14 { | |
15 *d += !!x + 1; | |
16 d = &c; | |
17 } | |
18 ++a; | |
19 } | |
20 return *d; | |
21 } |