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/] [execute/] [20000605-2.c] - Blame information for rev 823

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

Line No. Rev Author Line
1 149 jeremybenn
struct F { int i; };
2
 
3
void f1(struct F *x, struct F *y)
4
{
5
  int timeout = 0;
6
  for (; ((const struct F*)x)->i < y->i ; x->i++)
7
    if (++timeout > 5)
8
      abort ();
9
}
10
 
11
main()
12
{
13
  struct F x, y;
14
  x.i = 0;
15
  y.i = 1;
16
  f1 (&x, &y);
17
  exit (0);
18
}

powered by: WebSVN 2.1.0

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