2
0

enum.toml 457 B

12345678910111213141516171819
  1. trailer = """
  2. #if 0
  3. ''' '
  4. #endif
  5. #include <stddef.h>
  6. #include "testing-helpers.h"
  7. static_assert(offsetof(CBINDGEN_STRUCT(P), tag) == 0, "unexpected offset for tag");
  8. static_assert(offsetof(CBINDGEN_STRUCT(P), p0) == 1, "unexpected offset for p0");
  9. static_assert(offsetof(CBINDGEN_STRUCT(P), p0) == 1, "unexpected offset for p1");
  10. static_assert(sizeof(CBINDGEN_STRUCT(P)) == 4, "unexpected size for P");
  11. #if 0
  12. ' '''
  13. #endif
  14. """
  15. [export.rename]
  16. "I" = "ExI"