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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [pr39074-3.c] - Blame information for rev 298

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

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do run } */
2
/* { dg-require-effective-target stdint_types } */
3
 
4
#include <stdint.h>
5
 
6
uintptr_t __attribute__((noinline,const)) bar(int ***p) { return (uintptr_t)p; }
7
extern void abort (void);
8
int main()
9
{
10
  int i, j;
11
  int *y = &j;
12
  int **a = &y, **x;
13
  int ***p;
14
  uintptr_t b;
15
  b = bar(&a);
16
  p = (int ***)b;
17
  x = *p;
18
  *x = &i;
19
  i = 1;
20
  *y = 0;
21
  if (i != 0)
22
    abort ();
23
  return 0;
24
}
25
 

powered by: WebSVN 2.1.0

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