aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/pr52045.c
blob: 888ddb6a129a17a294608023a1bcb20baf23a4cd (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */
/* { dg-options "-O3 -ftracer -fno-tree-ccp -fno-tree-copy-prop -fno-tree-dce" } */

char *vx;
char buf[20];

void
foo (void)
{
  vx = __builtin___stpcpy_chk (buf, vx ? "gh" : "e", sizeof(buf));
}