OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [pr14092-1.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* PR c/14092
2
 * Origin: bonzini@gnu.org
3
 * rejects-valid
4
 */
5
/* { dg-do compile } */
6
 
7
/* Define this so that we are more portable.  The testcase in the
8
   PR failed on 64-bit hosts.  */
9
typedef int __attribute__ ((mode (__pointer__))) intptr_t;
10
 
11
typedef struct _PLCI {
12
  unsigned char x;
13
  unsigned char buf[1];
14
} PLCI;
15
 
16
void nl_ind(PLCI * plci)
17
{
18
  plci->x = -((intptr_t)(plci->buf)) & 3;
19
}
20
 

powered by: WebSVN 2.1.0

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