mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 22:21:09 +03:00
Make side effect on strongly pure function call
This commit is contained in:
parent
a38148f38e
commit
5b39ab253c
4 changed files with 22 additions and 27 deletions
|
@ -2985,9 +2985,9 @@ unittest
|
|||
//static assert(!is(typeof(Appender!string(cc))));
|
||||
|
||||
//This should always work:
|
||||
appender!string(null);
|
||||
appender!(const(char)[])(null);
|
||||
appender!(char[])(null);
|
||||
{auto app = appender!string(null);}
|
||||
{auto app = appender!(const(char)[])(null);}
|
||||
{auto app = appender!(char[])(null);}
|
||||
}
|
||||
|
||||
unittest //Test large allocations (for GC.extend)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue