mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
18 lines
310 B
D
18 lines
310 B
D
/*
|
|
COMPILE_SEPARATELY:
|
|
EXTRA_SOURCES: imports/test17968a.d
|
|
PERMUTE_ARGS:
|
|
*/
|
|
|
|
import imports.test17968a;
|
|
|
|
void main()
|
|
{
|
|
auto r = fun2.fun1;
|
|
// just check that getHash works (doesn't throw).
|
|
typeid(r).getHash(&r);
|
|
|
|
// try gethash when member is null.
|
|
r.t = null;
|
|
typeid(r).getHash(&r);
|
|
}
|