OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR testsuite/52641
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
compile
/
pr38505.c
1
/* PR middle-end/38505 */
2
/* { dg-do compile } */
3
4
struct S
5
{
6
unsigned short a[50];
7
unsigned short b[20];
8
};
9
extern void bar (struct S *);
10
extern void baz (unsigned short *);
11
extern unsigned short d[];
12
13
void
14
foo (void)
15
{
16
struct S s;
17
unsigned short g[50];
18
19
baz (g);
20
__builtin_memcpy (&s, g, sizeof (g));
21
__builtin_memcpy (s.b, d, sizeof (s.b));
22
bar (&s);
23
}