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.target/] [mips/] [args-2.c] - Blame information for rev 321

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 321 jeremybenn
/* Check the _MIPSEB and _MIPSEL macros are accurate.  */
2
/* { dg-do run } */
3
extern void abort (void);
4
extern void exit (int);
5
 
6
short foo = 1;
7
int main ()
8
{
9
  char *p = (char *) &foo;
10
 
11
#ifdef _MIPSEB
12
  if (p[0] != 0 || p[1] != 1)
13
#else
14
  if (p[0] != 1 || p[1] != 0)
15
#endif
16
    abort ();
17
  exit (0);
18
}

powered by: WebSVN 2.1.0

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