mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
12 lines
221 B
D
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);
|
|
}
|