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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [pr14092-1.c] - Rev 867

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

/* PR c/14092
 * Origin: bonzini@gnu.org
 * rejects-valid
 */
/* { dg-do compile } */
 
/* Define this so that we are more portable.  The testcase in the
   PR failed on 64-bit hosts.  */
typedef int __attribute__ ((mode (__pointer__))) intptr_t;
 
typedef struct _PLCI {
  unsigned char x;
  unsigned char buf[1];
} PLCI;
 
void nl_ind(PLCI * plci)
{
  plci->x = -((intptr_t)(plci->buf)) & 3;
}
 
 

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

powered by: WebSVN 2.1.0

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