OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr38505.c] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 jeremybenn
/* 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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.