2016-12-21 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / pr59362.c
blob3e78f76bc5fecc9d104e92df4961395c968fe861
1 /* PR tree-optimization/59362 */
3 char *
4 foo (char *r, int s)
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;
12 char *a;
13 long int b;
15 void
16 bar (void)
18 b = __builtin_object_size (0, 0);
19 a = __builtin___stpcpy_chk (0, "", b);
20 b = __builtin_object_size (a, 0);