1 /* PR tree-optimization/59362 */
2 
3 char *
foo(char * r,int s)4 foo (char *r, int s)
5 {
6   r = __builtin___stpcpy_chk (r, "abc", __builtin_object_size (r, 1));
7   if (s)
8     r = __builtin___stpcpy_chk (r, "d", __builtin_object_size (r, 1));
9   return r;
10 }
11 
12 char *a;
13 long int b;
14 
15 void
bar(void)16 bar (void)
17 {
18   b = __builtin_object_size (0, 0);
19   a = __builtin___stpcpy_chk (0, "", b);
20   b = __builtin_object_size (a, 0);
21 }
22