repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* gcc.dg/i386-fpcvt-1.c: New test.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
mips-args-2.c
blob
f53bfb2cde5f3dc05be7a0298e463331738bf4ab
1
/* Check the _MIPSEB and _MIPSEL macros are accurate. */
2
/* { dg-do run { target mips*-*-* } } */
3
short
foo
=
1
;
4
int
main
()
5
{
6
char
*
p
= (
char
*) &
foo
;
7
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
);
15
}