Skip to content

Commit c58f1fe

Browse files
committed
[libc++][test] Fix -Wstring-concatenation warnings
1 parent 9936b96 commit c58f1fe

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

libcxx/test/libcxx/utilities/function.objects/unord.hash/murmur2_or_cityhash_ubsan_unsigned_overflow_ignored.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ void test(const void* key, int len) {
3030

3131
int main(int, char**) {
3232
const std::string TestCases[] = {
33-
"abcdaoeuaoeclaoeoaeuaoeuaousaotehu]+}sthoasuthaoesutahoesutaohesutaoeusaoetuhasoetuhaoseutaoseuthaoesutaohes"
33+
"abcdaoeuaoeclaoeoaeuaoeuaousaotehu]+}sthoasuthaoesutahoesutaohesutaoeusaoetuhasoetuhaoseutaoseuthaoesutaohes",
3434
"00000000000000000000000000000000000000000000000000000000000000000000000",
3535
"1237546895+54+4554985416849484213464984765465464654564565645645646546456546546"
3636
};

libcxx/test/std/input.output/filesystems/class.path/path.member/path.compare.pass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ const PathCompareTest CompareTestCases[] =
6666
{"/foo/bar/", "/foo/bar", 1}, // trailing separator
6767
{"foo", "/foo", -1}, // if !this->has_root_directory() and p.has_root_directory(), a value less than 0.
6868
{"/foo", "foo", 1}, // if this->has_root_directory() and !p.has_root_directory(), a value greater than 0.
69-
{"//" LONGA "////" LONGB "/" LONGC "///" LONGD, "//" LONGA "/" LONGB "/" LONGC "/" LONGD, 0},
70-
{ LONGA "/" LONGB "/" LONGC, LONGA "/" LONGB "/" LONGB, 1}
69+
{("//" LONGA "////" LONGB "/" LONGC "///" LONGD), ("//" LONGA "/" LONGB "/" LONGC "/" LONGD), 0},
70+
{(LONGA "/" LONGB "/" LONGC), (LONGA "/" LONGB "/" LONGB), 1}
7171

7272
};
7373
#undef LONGA

0 commit comments

Comments
 (0)