(04-18-2014, 07:06 AM)tigerw Wrote: Question for all, especially xoft. What is the shortest crashing c++ program?
I'd go with
int main() { return *((int *)nullptr); }It might not be the shortest ever, but it's short enough and it's exactly clear why it crashes.
(04-18-2014, 05:28 PM)bearbin Wrote: main() {return 1/0;}I think most compilers nowadays catch this kind of bug and won't even compile the program.
That might compile somewhere, so maybe that?
(04-18-2014, 05:46 PM)STR_Warrior Wrote: Oh I thought since they are completely different from each other that it would be better to start a new repo.
Yeah, well, if there ever is anything resembling a HG plugin, I'm willing to replace the current one with it