mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-26 00:23:14 +01:00
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:
7
tests/mini/mainvoidreturn.d
Normal file
7
tests/mini/mainvoidreturn.d
Normal file
@@ -0,0 +1,7 @@
|
||||
void foo()
|
||||
{}
|
||||
|
||||
void main()
|
||||
{
|
||||
return foo();
|
||||
}
|
||||
Reference in New Issue
Block a user