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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.target/] [mips/] [args-2.c] - Rev 307

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

/* Check the _MIPSEB and _MIPSEL macros are accurate.  */
/* { dg-do run } */
extern void abort (void);
extern void exit (int);
 
short foo = 1;
int main ()
{
  char *p = (char *) &foo;
 
#ifdef _MIPSEB
  if (p[0] != 0 || p[1] != 1)
#else
  if (p[0] != 1 || p[1] != 0)
#endif
    abort ();
  exit (0);
}
 

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.