kit

kit
git clone https://git.ryansepassi.com/git/kit.git
Log | Files | Refs | README

pragma_pack_01_struct_size.c (178B)


      1 #pragma pack(push, 4)
      2 struct S {
      3   int a;
      4   unsigned long long b;
      5 };
      6 #pragma pack(pop)
      7 
      8 _Static_assert(sizeof(struct S) == 12, "pack4 size");
      9 
     10 int test_main(void) { return 42; }