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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [pr38212.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
int __attribute__((noinline))
2
foo (int *__restrict p, int i)
3
{
4
  int *__restrict q;
5
  int *__restrict r;
6
  int v, w;
7
  q = p + 1;
8
  r = q - i;
9
  v = *r;
10
  *p = 1;
11
  w = *r;
12
  return v + w;
13
}
14
extern void abort (void);
15
int main()
16
{
17
  int i = 0;
18
  if (foo (&i, 1) != 1)
19
    abort ();
20
  return 0;
21
}
22
 

powered by: WebSVN 2.1.0

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