Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/pr46177.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* { dg-do compile } */ | |
2 /* { dg-options "-O -fno-tree-copy-prop -ftree-loop-distribution" } */ | |
3 | |
4 extern int A[]; | |
5 extern int B[]; | |
6 | |
7 void | |
8 foo (int j, int c) | |
9 { | |
10 int i; | |
11 | |
12 if (c) | |
13 for (i = 0; i < j; i++) | |
14 A[i] = B[i] = 0; | |
15 | |
16 for (i = 0; i < j; i++) | |
17 A[i] = B[i]; | |
18 } |