mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
12 lines
212 B
D
12 lines
212 B
D
// https://issues.dlang.org/show_bug.cgi?id=23639
|
|
|
|
// REQUIRED_ARGS: -preview=nosharedaccess
|
|
|
|
class T {}
|
|
|
|
shared(T) allocClassMem()
|
|
{
|
|
void *p;
|
|
// assume p is allocated here
|
|
return cast(shared(T))p;
|
|
}
|