Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr32975.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
rev | line source |
---|---|
111 | 1 /* PR tree-optimization/32975 */ |
2 /* { dg-do compile } */ | |
3 /* { dg-options "-O1 -finline-functions -fipa-cp" } */ | |
4 | |
5 static int | |
6 f0 (char *s0, char *s1) | |
7 { | |
8 return __builtin_strlen (s0) > __builtin_strlen (s1); | |
9 } | |
10 | |
11 int | |
12 f1 (char *s, int j) | |
13 { | |
14 if (f0 (s, "")) | |
15 return 1; | |
16 return j; | |
17 } | |
18 | |
19 void | |
20 f2 (char *s) | |
21 { | |
22 f1 (s, 0); | |
23 } |