mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
21 lines
348 B
D
21 lines
348 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail208.d(18): Error: `return` expression expected
|
|
fail_compilation/fail208.d(21): called from here: `MakeA()`
|
|
---
|
|
*/
|
|
|
|
|
|
// https://issues.dlang.org/show_bug.cgi?id=1593
|
|
// ICE compiler crash empty return statement in function
|
|
struct A
|
|
{
|
|
}
|
|
|
|
A MakeA()
|
|
{
|
|
return ;
|
|
}
|
|
|
|
static const A aInstance = MakeA();
|