dmd/compiler/test/compilable/issue22130.d
2022-07-09 18:53:07 +02:00

12 lines
221 B
D

// https://issues.dlang.org/show_bug.cgi?id=22130
int* f(const int* input) pure nothrow @safe
{
int* output;
return output;
}
void main() pure nothrow @safe
{
int* c = new int;
immutable int* i = f(c);
}