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/] [divconst-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
typedef struct
2
{
3
  unsigned a, b, c, d;
4
} t1;
5
 
6
f (t1 *ps)
7
{
8
    ps->a = 10000;
9
    ps->b = ps->a / 3;
10
    ps->c = 10000;
11
    ps->d = ps->c / 3;
12
}
13
 
14
main ()
15
{
16
  t1 s;
17
  f (&s);
18
  if (s.a != 10000 || s.b != 3333 || s.c != 10000 || s.d != 3333)
19
    abort ();
20
  exit (0);
21
}

powered by: WebSVN 2.1.0

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