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/] [931004-13.c] - Blame information for rev 297

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
struct tiny
2
{
3
  char c;
4
  char d;
5
  char e;
6
  char f;
7
};
8
 
9
f (int n, struct tiny x, struct tiny y, struct tiny z, long l)
10
{
11
  if (x.c != 10)
12
    abort();
13
  if (x.d != 20)
14
    abort();
15
  if (x.e != 30)
16
    abort();
17
  if (x.f != 40)
18
    abort();
19
 
20
  if (y.c != 11)
21
    abort();
22
  if (y.d != 21)
23
    abort();
24
  if (y.e != 31)
25
    abort();
26
  if (y.f != 41)
27
    abort();
28
 
29
  if (z.c != 12)
30
    abort();
31
  if (z.d != 22)
32
    abort();
33
  if (z.e != 32)
34
    abort();
35
  if (z.f != 42)
36
    abort();
37
 
38
  if (l != 123)
39
    abort ();
40
}
41
 
42
main ()
43
{
44
  struct tiny x[3];
45
  x[0].c = 10;
46
  x[1].c = 11;
47
  x[2].c = 12;
48
  x[0].d = 20;
49
  x[1].d = 21;
50
  x[2].d = 22;
51
  x[0].e = 30;
52
  x[1].e = 31;
53
  x[2].e = 32;
54
  x[0].f = 40;
55
  x[1].f = 41;
56
  x[2].f = 42;
57
  f (3, x[0], x[1], x[2], (long) 123);
58
  exit(0);
59
}
60
 

powered by: WebSVN 2.1.0

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