summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2021-04-26 16:28:30 +0200
committerStephan Bergmann <sbergman@redhat.com>2021-04-27 08:01:27 +0200
commitf5a95eb32f32c44359d6e9c26dd97cecb0b207a9 (patch)
tree709dd7a053c213f6b076eca9a2a04309b1eaa036 /compilerplugins
parentd08c7fecd6b38442ea7a4ac79315603cc7084208 (diff)
More aggressive Clang 13 trunk -Werror,-Wdeprecated-copy[-with-dtor]
...since <https://github.com/llvm/llvm-project/commit/abf3ca61e3235681f26d0f527b8e2763dd4c0c62> "[Diagnostics] Restore -Wdeprecated warning when user-declared copy assignment operator is defined as deleted (PR45634)" Change-Id: I43ae8a620915ad211a1f21ecf89b6955b7d2faaf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114674 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/test/buriedassign.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/compilerplugins/clang/test/buriedassign.cxx b/compilerplugins/clang/test/buriedassign.cxx
index 9cbdbfc49df9..d75c519f4c4a 100644
--- a/compilerplugins/clang/test/buriedassign.cxx
+++ b/compilerplugins/clang/test/buriedassign.cxx
@@ -43,6 +43,7 @@ struct MyInt
: x(i)
{
}
+ MyInt(MyInt const&) = default;
MyInt& operator=(MyInt const&) = default;
MyInt& operator=(int) { return *this; }
bool operator<(MyInt const& other) const { return x < other.x; }