GDB (xrefs)
Loading...
Searching...
No Matches
Enumerations | Functions
selftests::packed_tests Namespace Reference

Enumerations

enum  test_enum { TE_A = 1 , TE_B = 2 , TE_C = 3 , TE_D = 4 }
 

Functions

 gdb_static_assert (sizeof(packed< test_enum, 1 >)==1)
 
 gdb_static_assert (sizeof(packed< test_enum, 2 >)==2)
 
 gdb_static_assert (sizeof(packed< test_enum, 3 >)==3)
 
 gdb_static_assert (sizeof(packed< test_enum, 4 >)==4)
 
 gdb_static_assert (alignof(packed< test_enum, 1 >)==1)
 
 gdb_static_assert (alignof(packed< test_enum, 2 >)==1)
 
 gdb_static_assert (alignof(packed< test_enum, 3 >)==1)
 
 gdb_static_assert (alignof(packed< test_enum, 4 >)==1)
 
static void run_tests ()
 

Enumeration Type Documentation

◆ test_enum

Enumerator
TE_A 
TE_B 
TE_C 
TE_D 

Definition at line 27 of file packed-selftests.c.

Function Documentation

◆ gdb_static_assert() [1/8]

selftests::packed_tests::gdb_static_assert ( alignof(packed< test_enum, 1 >) = =1)

◆ gdb_static_assert() [2/8]

selftests::packed_tests::gdb_static_assert ( alignof(packed< test_enum, 2 >) = =1)

◆ gdb_static_assert() [3/8]

selftests::packed_tests::gdb_static_assert ( alignof(packed< test_enum, 3 >) = =1)

◆ gdb_static_assert() [4/8]

selftests::packed_tests::gdb_static_assert ( alignof(packed< test_enum, 4 >) = =1)

◆ gdb_static_assert() [5/8]

selftests::packed_tests::gdb_static_assert ( sizeof(packed< test_enum, 1 >) = =1)

◆ gdb_static_assert() [6/8]

selftests::packed_tests::gdb_static_assert ( sizeof(packed< test_enum, 2 >) = =2)

◆ gdb_static_assert() [7/8]

selftests::packed_tests::gdb_static_assert ( sizeof(packed< test_enum, 3 >) = =3)

◆ gdb_static_assert() [8/8]

selftests::packed_tests::gdb_static_assert ( sizeof(packed< test_enum, 4 >) = =4)

◆ run_tests()

static void selftests::packed_tests::run_tests ( )
static

Definition at line 64 of file packed-selftests.c.

Referenced by _initialize_packed_selftests().