gcc/testsuite/gcc.dg/pr32975.c
raw| 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 | } |