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

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

Line No. Rev Author Line
1 297 jeremybenn
int f (int **, int *, int *, int **, int **) __attribute__ ((__noinline__));
2
int
3
f (int **ipp, int *i1p, int *i2p, int **i3, int **i4)
4
{
5
  **ipp = *i1p;
6
  *ipp = i2p;
7
  *i3 = *i4;
8
  **ipp = 99;
9
  return 3;
10
}
11
 
12
extern void exit (int);
13
extern void abort (void);
14
 
15
int main (void)
16
{
17
  int i = 42, i1 = 66, i2 = 1, i3 = -1, i4 = 55;
18
  int *ip = &i;
19
  int *i3p = &i3;
20
  int *i4p = &i4;
21
 
22
  f (&ip, &i1, &i2, &i3p, &i4p);
23
  if (i != 66 || ip != &i2 || i2 != 99 || i3 != -1 || i3p != i4p || i4 != 55)
24
    abort ();
25
  exit (0);
26
}

powered by: WebSVN 2.1.0

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