fork(2) download
  1. #include <stdio.h>
  2.  
  3. #define STATIC_ASSERT(COND) typedef char static_assertion_##__LINE__[(COND) ? 1 : -1]
  4. #define ENSURE_SIZE(structure, size) STATIC_ASSERT(sizeof(structure) == size)
  5.  
  6. typedef struct
  7. {
  8. unsigned a : 1;
  9. unsigned b : 1;
  10. } foo;
  11. ENSURE_SIZE(foo, sizeof(unsigned));
  12.  
  13. int main(void) {
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 2152KB
stdin
Standard input is empty
stdout
Standard output is empty