diff options
-rw-r--r-- | vespalib/src/tests/shared_string_repo/shared_string_repo_test.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vespalib/src/tests/shared_string_repo/shared_string_repo_test.cpp b/vespalib/src/tests/shared_string_repo/shared_string_repo_test.cpp index aaf4a5e3e56..db5b1c6f217 100644 --- a/vespalib/src/tests/shared_string_repo/shared_string_repo_test.cpp +++ b/vespalib/src/tests/shared_string_repo/shared_string_repo_test.cpp @@ -309,7 +309,14 @@ TEST("require that handle/string can be obtained from string_id") { TEST("require that handle can be self-assigned") { Handle a("foo"); +#ifdef __clang__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wself-assign-overloaded" +#endif a = a; +#ifdef __clang__ +#pragma clang diagnostic pop +#endif EXPECT_EQUAL(a.as_string(), vespalib::string("foo")); } |