d: Merge upstream dmd, druntime 26f049fb26, phobos 330d6a4fd.
[official-gcc.git] / gcc / testsuite / gdc.test / compilable / test21398.d
blob951bd91eea0b329c926ed2294253766ee2e015a1
1 // https://issues.dlang.org/show_bug.cgi?id=21398
3 module test21398;
5 void free(void* ptr);
7 class MAlloc(T)
9 import test21398: free;
11 void free(T)(T* value)
13 free(value);
17 struct Box(T)
19 private T* __ptr;
20 alias A = MAlloc!T;
22 ~this()
24 A.free(__ptr);
28 void main()
30 auto b = Box!(char)();