mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
16 lines
277 B
D
16 lines
277 B
D
// https://issues.dlang.org/show_bug.cgi?id=19970
|
|
|
|
enum void* p = cast(void*)0;
|
|
static assert(p is null);
|
|
static assert(ctfeLocal(p));
|
|
static assert(ctfeGlobal());
|
|
|
|
bool ctfeGlobal ()
|
|
{
|
|
return p is null;
|
|
}
|
|
|
|
bool ctfeLocal (const void* ptr) pure
|
|
{
|
|
return ptr is null;
|
|
}
|