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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20000808-1.c] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
typedef struct {
2
  long int p_x, p_y;
3
} Point;
4
 
5
void
6
bar ()
7
{
8
}
9
 
10
void
11
f (p0, p1, p2, p3, p4, p5)
12
     Point p0, p1, p2, p3, p4, p5;
13
{
14
  if (p0.p_x != 0 || p0.p_y != 1
15
      || p1.p_x != -1 || p1.p_y != 0
16
      || p2.p_x != 1 || p2.p_y != -1
17
      || p3.p_x != -1 || p3.p_y != 1
18
      || p4.p_x != 0 || p4.p_y != -1
19
      || p5.p_x != 1 || p5.p_y != 0)
20
    abort ();
21
}
22
 
23
void
24
foo ()
25
{
26
  Point p0, p1, p2, p3, p4, p5;
27
 
28
  bar();
29
 
30
  p0.p_x = 0;
31
  p0.p_y = 1;
32
 
33
  p1.p_x = -1;
34
  p1.p_y = 0;
35
 
36
  p2.p_x = 1;
37
  p2.p_y = -1;
38
 
39
  p3.p_x = -1;
40
  p3.p_y = 1;
41
 
42
  p4.p_x = 0;
43
  p4.p_y = -1;
44
 
45
  p5.p_x = 1;
46
  p5.p_y = 0;
47
 
48
  f (p0, p1, p2, p3, p4, p5);
49
}
50
 
51
int
52
main()
53
{
54
  foo();
55
  exit(0);
56
}

powered by: WebSVN 2.1.0

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