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/] [20060412-1.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
extern void abort (void);
2
 
3
struct S
4
{
5
  long o;
6
};
7
 
8
struct T
9
{
10
  long o;
11
  struct S m[82];
12
};
13
 
14
struct T t;
15
 
16
int
17
main ()
18
{
19
  struct S *p, *q;
20
 
21
  p = (struct S *) &t;
22
  p = &((struct T *) p)->m[0];
23
  q = p + 82;
24
  while (--q > p)
25
    q->o = -1;
26
  q->o = 0;
27
 
28
  if (q > p)
29
    abort ();
30
  if (q - p > 0)
31
    abort ();
32
  return 0;
33
}

powered by: WebSVN 2.1.0

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