Sign in
gnu
/
gcc
/
fba228e259dd5112851527f2dbb62c5601100985
/
.
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail41.d
blob: fa0e0c3cdcf9d3e486776931355948f54fb8ea10 [
file
] [
log
] [
blame
]
/*
TEST_OUTPUT:
---
fail_compilation/fail41.d(17): Error: cannot return non-void from void function
---
*/
class
MyClass
{
}
MyClass
[
char
[]]
myarray
;
void
fn
()
{
foreach
(
MyClass
mc
;
myarray
)
return
mc
;
}