d: Fix ICE in build_deref, at d/d-codegen.cc:1650 [PR111650]
[official-gcc.git] / gcc / testsuite / gdc.dg / pr111650.d
blob4298a76d38f9820e5967e94cbe938330c1c331cb
1 // { dg-do compile }
2 ref V require(K, V)(ref V[K] aa, K key, lazy V value);
4 struct Root
6 ulong[3] f;
9 Root[ulong] roots;
11 Root getRoot(int fd, ulong rootID)
13 return roots.require(rootID,
15 Root result;
16 inoLookup(fd, () => result);
17 return result;
18 }());
21 void inoLookup(int, scope Root delegate()) { }