Merge pull request #506 from andrewcsmith/patch-2
[supercollider.git] / external_libraries / boost_endian / libs / integer / test / endian_in_union_test.cpp
blob37b246d3e9162f8a76cfcd27c674b7d36feb5270
1 // endian_in_union_test.cpp -------------------------------------------------//
3 // Copyright Beman Dawes 2008
5 // Distributed under the Boost Software License, Version 1.0. (See accompanying
6 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8 // See library home page at http://www.boost.org/libs/endian
10 //----------------------------------------------------------------------------//
12 #define BOOST_ENDIAN_FORCE_PODNESS
14 #include <boost/integer/endian.hpp>
15 #include <cassert>
17 using namespace boost::integer;
19 union U
21 big8_t big8;
22 big16_t big16;
23 big24_t big24;
24 big32_t big32;
25 big40_t big40;
26 big48_t big48;
27 big56_t big56;
28 big64_t big64;
30 ubig8_t ubig8;
31 ubig16_t ubig16;
32 ubig24_t ubig24;
33 ubig32_t ubig32;
34 ubig40_t ubig40;
35 ubig48_t ubig48;
36 ubig56_t ubig56;
37 ubig64_t ubig64;
39 little8_t little8;
40 little16_t little16;
41 little24_t little24;
42 little32_t little32;
43 little40_t little40;
44 little48_t little48;
45 little56_t little56;
46 little64_t little64;
48 ulittle8_t ulittle8;
49 ulittle16_t ulittle16;
50 ulittle24_t ulittle24;
51 ulittle32_t ulittle32;
52 ulittle40_t ulittle40;
53 ulittle48_t ulittle48;
54 ulittle56_t ulittle56;
55 ulittle64_t ulittle64;
57 native8_t native8;
58 native16_t native16;
59 native24_t native24;
60 native32_t native32;
61 native40_t native40;
62 native48_t native48;
63 native56_t native56;
64 native64_t native64;
66 unative8_t unative8;
67 unative16_t unative16;
68 unative24_t unative24;
69 unative32_t unative32;
70 unative40_t unative40;
71 unative48_t unative48;
72 unative56_t unative56;
73 unative64_t unative64;
76 U foo;
78 int main()
81 return 0;