Re: dummy main option (for use with --unittest)

2017-03-21 Thread kinke via D.gnu
On Tuesday, 21 March 2017 at 21:49:05 UTC, dan wrote: On Tuesday, 21 March 2017 at 21:36:39 UTC, kinke wrote: On Tuesday, 21 March 2017 at 19:17:53 UTC, dan wrote: Is there some option for generating a dummy main with gdc? Here: http://forum.dlang.org/thread/mailman.974.1489320559.31550.digi

Re: dummy main option (for use with --unittest)

2017-03-21 Thread dan via D.gnu
On Tuesday, 21 March 2017 at 21:36:39 UTC, kinke wrote: On Tuesday, 21 March 2017 at 19:17:53 UTC, dan wrote: Is there some option for generating a dummy main with gdc? Here: http://forum.dlang.org/thread/mailman.974.1489320559.31550.digitalmars-d-le...@puremagic.com. And so recent too, goo

Re: dummy main option (for use with --unittest)

2017-03-21 Thread kinke via D.gnu
On Tuesday, 21 March 2017 at 19:17:53 UTC, dan wrote: Is there some option for generating a dummy main with gdc? Here: http://forum.dlang.org/thread/mailman.974.1489320559.31550.digitalmars-d-le...@puremagic.com.

dummy main option (for use with --unittest)

2017-03-21 Thread dan via D.gnu
Is there some option for generating a dummy main with gdc? Alexandrescu's book (p 133) mentions a '--main', but that doesn't seem to work for gdc, and i can't find one from 'gdc --help'. The --unittest option does work, although, for whatever reason, you cannot just stick 'void main( ) { }' i