Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr56992.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
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 } |