#include <stdio.h> typedef struct _Slice { size_t length; void* ptr;} Slice; int main(void) { Slice s={0,NULL}; if(s)return 1; return 0;}
Standard input is empty
prog.c: In function 'main': prog.c:10:5: error: used struct type value where scalar is required if(s)return 1; ^ prog.c:9:8: warning: variable 's' set but not used [-Wunused-but-set-variable] Slice s={0,NULL}; ^
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!