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/] [20000412-3.c] - Blame information for rev 825

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

Line No. Rev Author Line
1 149 jeremybenn
typedef struct {
2
  char y;
3
  char x[32];
4
} X;
5
 
6
int z (void)
7
{
8
  X xxx;
9
  xxx.x[0] =
10
  xxx.x[31] = '0';
11
  xxx.y = 0xf;
12
  return f (xxx, xxx);
13
}
14
 
15
int main (void)
16
{
17
  int val;
18
 
19
  val = z ();
20
  if (val != 0x60)
21
    abort ();
22
  exit (0);
23
}
24
 
25
int f(X x, X y)
26
{
27
  if (x.y != y.y)
28
    return 'F';
29
 
30
  return x.x[0] + y.x[0];
31
}
32
 

powered by: WebSVN 2.1.0

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