Merge to HEAD at tree-cleanup-merge-20041024 .
[official-gcc.git] / gcc / testsuite / gcc.dg / mips-args-2.c
blobc34751c1c512fba827ba13436f22065431b13363
1 /* Check the _MIPSEB and _MIPSEL macros are accurate. */
2 /* { dg-do run { target mips*-*-* } } */
3 extern void abort (void);
4 extern void exit (int);
6 short foo = 1;
7 int main ()
9 char *p = (char *) &foo;
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);