☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gdc.test
/
compilable
/
test23986.d
☽
☼
gcc/testsuite/gdc.test/compilable/test23986.d
code
plain
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
}