fork(2) download
  1. #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
  2. #define BUILD_BUG_ON_NULL(e) ((void *)sizeof(struct { int:-!!(e); }))
  3.  
  4. int main()
  5. {
  6. BUILD_BUG_ON_ZERO(1);
  7. return 0;
  8. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:1:45: error: negative width in bit-field ‘<anonymous>’
 #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
                                             ^
prog.c:6:5: note: in expansion of macro ‘BUILD_BUG_ON_ZERO’
     BUILD_BUG_ON_ZERO(1);
     ^
prog.c:1:30: warning: statement with no effect [-Wunused-value]
 #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
                              ^
prog.c:6:5: note: in expansion of macro ‘BUILD_BUG_ON_ZERO’
     BUILD_BUG_ON_ZERO(1);
     ^
stdout
Standard output is empty