aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/pr52318.c
blob: 4f367aa1cd4c59a89135b0c4acf79a595e7a086f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* PR tree-optimization/52318 */
/* { dg-do compile } */
/* { dg-options "-O3 -ftracer -fno-tree-ccp -fno-tree-copy-prop -fno-tree-dce" } */

int c;
char *p;

void
foo (int i)
{
  char a[2];
  char b[20];
  p = __builtin___stpcpy_chk (a, "", 2);
  p = __builtin___stpcpy_chk (&b[16], i ? "e" : "jkl", 4);
  if (c)
    foo (i);
}