Allow 'return exp;' for void main().

It's unfortunate that for main the llvm type and D type don't match up...
This commit is contained in:
Christian Kamm
2009-02-17 18:53:15 +01:00
parent d6a264e74b
commit f62df176d6
2 changed files with 14 additions and 2 deletions

View File

@@ -0,0 +1,7 @@
void foo()
{}
void main()
{
return foo();
}