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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [pr20466-1.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
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.