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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20081103-1.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
struct S { char c; char arr[4]; float f; };
2
 
3
char A[4] = { '1', '2', '3', '4' };
4
 
5
void foo (struct S s)
6
{
7
  if (__builtin_memcmp (s.arr, A, 4))
8
    __builtin_abort ();
9
}
10
 
11
int main (void)
12
{
13
  struct S s;
14
  __builtin_memcpy (s.arr, A, 4);
15
  foo (s);
16
  return 0;
17
}

powered by: WebSVN 2.1.0

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