Lines Matching refs:packed
1 /* Self tests for packed for GDB, the GNU debugger.
21 #include "gdbsupport/packed.h"
34 static_assert (sizeof (packed<test_enum, 1>) == 1);
35 static_assert (sizeof (packed<test_enum, 2>) == 2);
36 static_assert (sizeof (packed<test_enum, 3>) == 3);
37 static_assert (sizeof (packed<test_enum, 4>) == 4);
39 static_assert (alignof (packed<test_enum, 1>) == 1);
40 static_assert (alignof (packed<test_enum, 2>) == 1);
41 static_assert (alignof (packed<test_enum, 3>) == 1);
42 static_assert (alignof (packed<test_enum, 4>) == 1);
46 static_assert (std::TRAIT<packed<test_enum, 1>>::value, "")
61 typedef packed<unsigned int, 2> packed_2;
89 /* Check that the custom std::atomic/packed/T relational operators
92 to make sure that we can compare atomic-wrapped packed, with
93 packed, and with the packed underlying type. */
95 std::atomic<packed<unsigned int, 2>> atomic_packed_2 (0x0102);
112 /* Check std::atomic<packed> truncation behaves the same as without
126 selftests::register_test ("packed", selftests::packed_tests::run_tests);