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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20011121-1.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
struct s
2
{
3
  int i[18];
4
  char f;
5
  char b[2];
6
};
7
 
8
struct s s1;
9
 
10
int
11
main()
12
{
13
  struct s s2;
14
  s2.b[0] = 100;
15
  __builtin_memcpy(&s2, &s1, ((unsigned int) &((struct s *)0)->b));
16
  if (s2.b[0] != 100)
17
    abort();
18
  exit(0);
19
}

powered by: WebSVN 2.1.0

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