Debian Codegraph @

gcc/testsuite/gdc.test/compilable/issue22130.d

raw
1 // https://issues.dlang.org/show_bug.cgi?id=22130
2
3 int* f(const int* input) pure nothrow @safe
4 {
5 int* output;
6 return output;
7 }
8 void main() pure nothrow @safe
9 {
10 int* c = new int;
11 immutable int* i = f(c);
12 }