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
Limit dg-xfail-run-if for *-*-hpux11.[012]* to -O0
[official-gcc.git]
/
libphobos
/
testsuite
/
libphobos.betterc
/
test19924.d
blob
e9a93cad0ac8427cc57898ed96d3aef4eced5b13
1
/*******************************************/
2
// https://issues.dlang.org/show_bug.cgi?id=19924
3
4
import
core
.
bitop
;
5
6
extern
(
C
)
void
main
()
7
{
8
uint
a
=
0x01_23_45_67
;
9
a
=
bswap
(
a
);
10
assert
(
a
==
0x67_45_23_01
);
11
12
ulong
b
=
0x01_23_45_67_89
_ab_cd_ef
;
13
b
=
bswap
(
b
);
14
assert
(
b
==
0xef
_cd_ab
_89_67_45_23_01
);
15
}