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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [pr47925.c] - Blame information for rev 715

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

Line No. Rev Author Line
1 688 jeremybenn
struct s { volatile struct s *next; };
2
 
3
void __attribute__((noinline))
4
bar (int ignored, int n)
5
{
6
  asm volatile ("");
7
}
8
 
9
int __attribute__((noinline))
10
foo (volatile struct s *ptr, int n)
11
{
12
  int i;
13
 
14
  bar (0, n);
15
  for (i = 0; i < n; i++)
16
    ptr = ptr->next;
17
}
18
 
19
int main (void)
20
{
21
  volatile struct s rec = { &rec };
22
  foo (&rec, 10);
23
  return 0;
24
}

powered by: WebSVN 2.1.0

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