summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr47443.c
blob: fa7d6b98ad38bf6e3256fdee7a9f2239921a70fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* PR tree-optimization/47443 */
/* { dg-do compile } */
/* { dg-options "-O -fstack-check=generic" } */

static inline bar (char *c, int i)
{
  return c + i > c;
}

int foo ()
{
  char c[100];
  return (bar (c, 1));
}