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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [20090618-1.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do run } */
2
/* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */
3
/* { dg-skip-if "PR middle-end/47405" { mips-sgi-irix* } } */
4
 
5
extern void abort (void);
6
 
7
struct X { int *p; int *q; };
8
 
9
int foo(void)
10
{
11
  int i = 0, j = 1;
12
  struct X x, y;
13
  int **p;
14
  y.p = &i;
15
  x.q = &j;
16
  p = __builtin_mempcpy (&x, &y, sizeof (int *));
17
  return **p;
18
}
19
 
20
int main()
21
{
22
  if (foo() != 1)
23
    abort ();
24
  return 0;
25
}

powered by: WebSVN 2.1.0

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