14 lines
300 B
D
14 lines
300 B
D
/*******************************************/
|
|
// https://issues.dlang.org/show_bug.cgi?id=19416
|
|
|
|
import core.stdc.stdlib : malloc, free;
|
|
import core.exception : onOutOfMemoryError;
|
|
|
|
extern(C) void main()
|
|
{
|
|
auto m = malloc(1);
|
|
if (!m)
|
|
onOutOfMemoryError();
|
|
else
|
|
free(m);
|
|
}
|