Fixed assignment memory issue.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-04-10 14:38:01 +02:00
parent 0427aa9ef1
commit 60802341b0
2 changed files with 27 additions and 7 deletions

View File

@@ -63,5 +63,15 @@ TEST_CASE("Out of scope char* doesn't lose reference", "[Utilities]") {
REQUIRE(strcmp(val.c_str(), "foobar") == 0);
}
TEST_CASE("Literal conststring to non literal, then use", "[Utilities]") {
Arbutils::CaseInsensitiveConstString val;
{
val = "foobar"_cnc;
}
INFO(val.c_str());
REQUIRE(strcmp(val.c_str(), "foobar") == 0);
}
#endif