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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20010426-1.c] - Blame information for rev 154

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

Line No. Rev Author Line
1 149 jeremybenn
struct { char *m; long n; } a[20];
2
int b = 20, c;
3
void bar(void) __attribute__((__noreturn__));
4
 
5
int
6
foo(int x)
7
{
8
  int i;
9
 
10
  for (i = 0; i < x; i++)
11
    {
12
      a[0].m = "a"; a[0].n = 10; c=1;
13
      a[c].m = "b"; a[c].n = 32; c++;
14
      if (c >= b) bar ();
15
      a[c].m = "c"; a[c].n = 80; c++;
16
      if (c >= b) bar ();
17
    }
18
  return 0;
19
}

powered by: WebSVN 2.1.0

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