Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/tree-ssa/ssa-dce-4.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
2 /* { dg-options "-O -fno-tree-fre -fdump-tree-cddce1" } */ | |
3 | |
4 int foo(int b) | |
5 { | |
6 int a[128]; | |
7 a[b] = 1; | |
8 if (b) | |
9 { | |
10 b = 2; | |
11 a[2] = 0; | |
12 } | |
13 a[2] = 3; | |
14 return a[2] + b; | |
15 } | |
16 | |
17 /* Verify DCE removes all accesses to a but the last store and the | |
18 read from a[2]. */ | |
19 /* { dg-final { scan-tree-dump-times "a\\\[\[^\n\]\\\]" 2 "cddce1" } } */ |