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.c-torture/execute/20101011-1.c: Skip on SH.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
20020103-1.c
blob
c010aeaad9fc97e7a049d71254b60f9f483c59dd
1
/* On h8300 port, the following used to be broken with -mh or -ms. */
2
3
extern
void
abort
(
void
);
4
extern
void
exit
(
int
);
5
6
unsigned long
7
foo
(
unsigned long
a
)
8
{
9
return
a
^
0x0000ffff
;
10
}
11
12
unsigned long
13
bar
(
unsigned long
a
)
14
{
15
return
a
^
0xffff0000
;
16
}
17
18
int
19
main
()
20
{
21
if
(
foo
(
0
) !=
0x0000ffff
)
22
abort
();
23
24
if
(
bar
(
0
) !=
0xffff0000
)
25
abort
();
26
27
exit
(
0
);
28
}