Limit dg-xfail-run-if for *-*-hpux11.[012]* to -O0
[official-gcc.git] / libphobos / testsuite / libphobos.betterc / test19924.d
blobe9a93cad0ac8427cc57898ed96d3aef4eced5b13
1 /*******************************************/
2 // https://issues.dlang.org/show_bug.cgi?id=19924
4 import core.bitop;
6 extern(C) void main()
8 uint a = 0x01_23_45_67;
9 a = bswap(a);
10 assert(a == 0x67_45_23_01);
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);