Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr69071.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* PR target/69071 */ |
2 /* { dg-do compile } */ | |
3 /* { dg-options "-O2 -g" } */ | |
145 | 4 /* { dg-require-effective-target size20plus } */ |
111 | 5 |
6 void *bar (void *); | |
7 | |
8 void | |
9 foo (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 } |