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/] [981130-1.c] - Blame information for rev 149

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

Line No. Rev Author Line
1 149 jeremybenn
struct s { int a; int b;};
2
struct s s1;
3
struct s s2 = { 1, 2, };
4
 
5
void
6
check (a, b)
7
     int a;
8
     int b;
9
{
10
  if (a == b)
11
    exit (0);
12
  else
13
    abort ();
14
}
15
 
16
int
17
main ()
18
{
19
  int * p;
20
  int x;
21
 
22
  s1.a = 9;
23
  p    = & s1.a;
24
  s1   = s2;
25
  x    = * p;
26
 
27
  check (x, 1);
28
}
29
 
30
 

powered by: WebSVN 2.1.0

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