Lines Matching refs:__attribute__

25 test_size(5, "struct __attribute__((packed)) {char a; uint32_t b;}");
26 test_size(5, "struct __attribute__((packed)) {uint32_t a; char b;}");
32 test_size(10, "struct __attribute__((packed)) {char a; uint32_t b;}[2]");
33 test_size(10, "struct __attribute__((packed)) {uint32_t a; char b;}[2]");
39 test_align(1, "union __attribute__((packed)) {char a; uint32_t b;}");
40 test_align(1, "union __attribute__((packed)) {uint32_t a; char b;}");
42 test_size(8, "struct {char a __attribute__((packed)); uint32_t b;}");
43 test_size(5, "struct {char a; uint32_t b __attribute__((packed));}");
44 test_size(5, "struct {uint32_t a __attribute__((packed)); char b;}");
45 test_size(8, "struct {uint32_t a; char b __attribute__((packed));}");
47 test_align(4, "struct {char a __attribute__((packed)); uint32_t b;}");
48 test_align(1, "struct {char a; uint32_t b __attribute__((packed));}");
49 test_align(1, "struct {uint32_t a __attribute__((packed)); char b;}");
50 test_align(4, "struct {uint32_t a; char b __attribute__((packed));}");
52 test_size(16, "struct __attribute__((aligned(16))) {char a; uint32_t b;}");
53 test_align(16, "struct __attribute__((aligned(16))) {char a; uint32_t b;}");
55 test_size(16, "struct {char a; uint32_t b;} __attribute__((aligned(16)))");
56 test_align(16, "struct {char a; uint32_t b;} __attribute__((aligned(16)))");
58 test_size(8, "struct {char a; uint32_t b __attribute__((aligned(1)));}");
59 test_align(4, "struct {char a; uint32_t b __attribute__((aligned(1)));}");
60 test_size(32, "struct {char a; uint32_t b __attribute__((aligned(16)));}");
61 test_align(16, "struct {char a; uint32_t b __attribute__((aligned(16)));}");
64 …test_size(FFI::__BIGGEST_ALIGNMENT__ * 2, "struct {char a; uint32_t b __attribute__((aligned));}"…
65 test_align(FFI::__BIGGEST_ALIGNMENT__, "struct {char a; uint32_t b __attribute__((aligned));}");