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
[committed] ft32 doesn't support trampolines.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
mips
/
args-2.c
blob
192756525f8b4578709e261f43aa3e8db4d154fa
1
/* 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
}