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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [pr38212.c] - Blame information for rev 298

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

Line No. Rev Author Line
1 297 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.