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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [pr36227.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do run { target { stdint_types } } } */
2
 
3
#include <stdint.h>
4
extern void abort (void);
5
int main()
6
{
7
  int i = 1;
8
  int *p = &i;
9
  uintptr_t iptr;
10
 
11
  iptr = (uintptr_t)p - (uintptr_t)&iptr;
12
  p = (int *)((uintptr_t)&iptr + iptr);
13
  if (*p != 1)
14
    abort ();
15
  return 0;
16
}
17
 

powered by: WebSVN 2.1.0

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