diff options
author | Louis Dionne <ldionne@apple.com> | 2020-08-13 08:48:12 -0400 |
---|---|---|
committer | Louis Dionne <ldionne@apple.com> | 2020-08-13 08:51:15 -0400 |
commit | c58f1fe2aebffaf6069b9f43940eebee183da687 (patch) | |
tree | d9363565f8eb407329ea6d4c0027ae9ac55defb8 | |
parent | 9936b96d5333af4e6dff55025943366bb5f07272 (diff) | |
download | llvm-c58f1fe2aebffaf6069b9f43940eebee183da687.zip llvm-c58f1fe2aebffaf6069b9f43940eebee183da687.tar.gz llvm-c58f1fe2aebffaf6069b9f43940eebee183da687.tar.bz2 |
[libc++][test] Fix -Wstring-concatenation warnings
2 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/test/libcxx/utilities/function.objects/unord.hash/murmur2_or_cityhash_ubsan_unsigned_overflow_ignored.pass.cpp b/libcxx/test/libcxx/utilities/function.objects/unord.hash/murmur2_or_cityhash_ubsan_unsigned_overflow_ignored.pass.cpp index 54f4db7..f9ef1d2 100644 --- a/libcxx/test/libcxx/utilities/function.objects/unord.hash/murmur2_or_cityhash_ubsan_unsigned_overflow_ignored.pass.cpp +++ b/libcxx/test/libcxx/utilities/function.objects/unord.hash/murmur2_or_cityhash_ubsan_unsigned_overflow_ignored.pass.cpp @@ -30,7 +30,7 @@ void test(const void* key, int len) { int main(int, char**) { const std::string TestCases[] = { - "abcdaoeuaoeclaoeoaeuaoeuaousaotehu]+}sthoasuthaoesutahoesutaohesutaoeusaoetuhasoetuhaoseutaoseuthaoesutaohes" + "abcdaoeuaoeclaoeoaeuaoeuaousaotehu]+}sthoasuthaoesutahoesutaohesutaoeusaoetuhasoetuhaoseutaoseuthaoesutaohes", "00000000000000000000000000000000000000000000000000000000000000000000000", "1237546895+54+4554985416849484213464984765465464654564565645645646546456546546" }; diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.compare.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.compare.pass.cpp index f20060e..80f563b 100644 --- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.compare.pass.cpp +++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.compare.pass.cpp @@ -66,8 +66,8 @@ const PathCompareTest CompareTestCases[] = {"/foo/bar/", "/foo/bar", 1}, // trailing separator {"foo", "/foo", -1}, // if !this->has_root_directory() and p.has_root_directory(), a value less than 0. {"/foo", "foo", 1}, // if this->has_root_directory() and !p.has_root_directory(), a value greater than 0. - {"//" LONGA "////" LONGB "/" LONGC "///" LONGD, "//" LONGA "/" LONGB "/" LONGC "/" LONGD, 0}, - { LONGA "/" LONGB "/" LONGC, LONGA "/" LONGB "/" LONGB, 1} + {("//" LONGA "////" LONGB "/" LONGC "///" LONGD), ("//" LONGA "/" LONGB "/" LONGC "/" LONGD), 0}, + {(LONGA "/" LONGB "/" LONGC), (LONGA "/" LONGB "/" LONGB), 1} }; #undef LONGA |