c++: reduce unnecessary tree_common
[official-gcc.git] / gcc / testsuite / gcc.dg / pr61773.c
blobe0b4e60202d43115422b8c92620865230572087c
1 /* PR tree-optimization/61773 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2" } */
5 void
6 foo (char **x)
8 char *p = __builtin_malloc (64);
9 char *q = __builtin_malloc (64);
10 __builtin_strcat (q, "abcde");
11 __builtin_strcat (p, "ab");
12 p[1] = q[3];
13 __builtin_strcat (p, q);
14 x[0] = p;
15 x[1] = q;