summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr26763-2.c
blob: d8155fb0831a5e56ddbeb63e504f4aecb7d6da0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do run } */

extern void abort(void);

int try (char *a, int d)
{
  return a + d > a;
}

int main(void)
{
  char bla[100];

  if (try (bla + 50, -1))
    abort ();

  return 0;
}