summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr61773.c
blob: e0b4e60202d43115422b8c92620865230572087c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR tree-optimization/61773 */
/* { dg-do compile } */
/* { dg-options "-O2" } */

void
foo (char **x)
{
  char *p = __builtin_malloc (64);
  char *q = __builtin_malloc (64);
  __builtin_strcat (q, "abcde");
  __builtin_strcat (p, "ab");
  p[1] = q[3];
  __builtin_strcat (p, q);
  x[0] = p;
  x[1] = q;
}