Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/tree-ssa/wholeprogram-1.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-options "-O2 -fdump-tree-optimized -fwhole-program" } */ |
2 int b[100]; | |
3 void abort (void); | |
4 | |
5 void | |
6 large_function () | |
7 { | |
8 int i; | |
9 for (i = 0; i < 99; i++) | |
10 if (b[i] / (b[i+1] + 1)) | |
11 abort (); | |
12 } | |
13 | |
14 int | |
15 main () | |
16 { | |
17 large_function (); | |
18 } | |
19 | |
20 /* Function should be inlined as called once. */ | |
21 /* { dg-final { scan-tree-dump-not "large_function" "optimized"} } */ | |
22 | |
23 |