mirror of
https://github.com/dlang/phobos.git
synced 2025-05-12 23:29:01 +03:00
Add regression test for issue 16663
This commit is contained in:
parent
8f8979ebe1
commit
2f27e58b0e
1 changed files with 32 additions and 0 deletions
32
std/uni.d
32
std/uni.d
|
@ -8898,6 +8898,22 @@ S toLower(S)(S s) @trusted pure
|
||||||
{ return toLower!wstring(s); }
|
{ return toLower!wstring(s); }
|
||||||
dstring toLower(dstring s)
|
dstring toLower(dstring s)
|
||||||
{ return toLower!dstring(s); }
|
{ return toLower!dstring(s); }
|
||||||
|
|
||||||
|
unittest
|
||||||
|
{
|
||||||
|
// https://issues.dlang.org/show_bug.cgi?id=16663
|
||||||
|
|
||||||
|
static struct String
|
||||||
|
{
|
||||||
|
string data;
|
||||||
|
alias data this;
|
||||||
|
}
|
||||||
|
|
||||||
|
void foo()
|
||||||
|
{
|
||||||
|
auto u = toLower(String(""));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -9064,6 +9080,22 @@ S toUpper(S)(S s) @trusted pure
|
||||||
{ return toUpper!wstring(s); }
|
{ return toUpper!wstring(s); }
|
||||||
dstring toUpper(dstring s)
|
dstring toUpper(dstring s)
|
||||||
{ return toUpper!dstring(s); }
|
{ return toUpper!dstring(s); }
|
||||||
|
|
||||||
|
unittest
|
||||||
|
{
|
||||||
|
// https://issues.dlang.org/show_bug.cgi?id=16663
|
||||||
|
|
||||||
|
static struct String
|
||||||
|
{
|
||||||
|
string data;
|
||||||
|
alias data this;
|
||||||
|
}
|
||||||
|
|
||||||
|
void foo()
|
||||||
|
{
|
||||||
|
auto u = toUpper(String(""));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@safe unittest
|
@safe unittest
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue