2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / mips-args-2.c
blobf53bfb2cde5f3dc05be7a0298e463331738bf4ab
1 /* Check the _MIPSEB and _MIPSEL macros are accurate. */
2 /* { dg-do run { target mips*-*-* } } */
3 short foo = 1;
4 int main ()
6 char *p = (char *) &foo;
8 #ifdef _MIPSEB
9 if (p[0] != 0 || p[1] != 1)
10 #else
11 if (p[0] != 1 || p[1] != 0)
12 #endif
13 abort ();
14 exit (0);