Make side effect on strongly pure function call

This commit is contained in:
k-hara 2014-06-14 22:58:03 +09:00
parent a38148f38e
commit 5b39ab253c
4 changed files with 22 additions and 27 deletions

View file

@ -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)