]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/pr69071.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / pr69071.c
CommitLineData
26ff85b0
JJ
1/* PR target/69071 */
2/* { dg-do compile } */
3/* { dg-options "-O2 -g" } */
f4a14e09 4/* { dg-require-effective-target size20plus } */
26ff85b0
JJ
5
6void *bar (void *);
7
8void
9foo (int c)
10{
11 unsigned char bf[65400];
12 unsigned char *p2 = bar (bf);
13 unsigned char *p3 = bar (bf);
14 for (; *p2; p2++, c++)
15 {
16 if (c)
17 {
18 short of = p2 - bf - 6;
19 unsigned ofu = of;
20 __builtin_memcpy (p3, &ofu, sizeof (ofu));
21 }
22 }
23}