Debian Codegraph @

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

raw
1 // REQUIRED_ARGS: -preview=dip1021 -o-
2 // https://issues.dlang.org/show_bug.cgi?id=23986
3 // dip1021 asserts on `typeof(null)` parameter
4 @safe:
5
6 void f(typeof(null) obj, int* x) {}
7
8 void g()
9 {
10 f(null, null);
11 }