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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20070212-1.c] - Blame information for rev 774

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

Line No. Rev Author Line
1 688 jeremybenn
struct f
2
{
3
  int i;
4
};
5
 
6
int g(int i, int c, struct f *ff, int *p)
7
{
8
  int *t;
9
  if (c)
10
   t = &i;
11
  else
12
   t = &ff->i;
13
  *p = 0;
14
  return *t;
15
}
16
 
17
extern void abort(void);
18
 
19
int main()
20
{
21
  struct f f;
22
  f.i = 1;
23
  if (g(5, 0, &f, &f.i) != 0)
24
    abort ();
25
  return 0;
26
}

powered by: WebSVN 2.1.0

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