1 /* PR tree-optimization/52318 */ 2 /* { dg-do compile } */ 3 /* { dg-options "-O3 -ftracer -fno-tree-ccp -fno-tree-copy-prop -fno-tree-dce" } */ 4 5 int c; 6 char *p; 7 8 void foo(int i)9foo (int i) 10 { 11 char a[2]; 12 char b[20]; 13 p = __builtin___stpcpy_chk (a, "", 2); 14 p = __builtin___stpcpy_chk (&b[16], i ? "e" : "jkl", 4); 15 if (c) 16 foo (i); 17 } 18