Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr56992.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 /* PR rtl-optimization/56992 */ |
2 /* { dg-do compile } */ | |
3 /* { dg-options "-Og -g" } */ | |
4 | |
5 inline int | |
6 foo (const char *x) | |
7 { | |
8 return __builtin_strlen (x); | |
9 } | |
10 | |
11 int | |
12 bar (const char *x, unsigned int *y) | |
13 { | |
14 unsigned int l = foo (x); | |
15 if (l > 15) | |
16 l = 15; | |
17 *y = l; | |
18 } |