mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-15 07:59:50 +00:00
Explicitly default DenseMapTest::CtorTest::operator=
Using the implicit default copy assignment operator in the presence of a user-declared copy ctor is deprecated in C++11. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231225 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ee118f3bc8
commit
5edbe7e4db
@ -46,6 +46,7 @@ public:
|
||||
CtorTester(const CtorTester &Arg) : Value(Arg.Value) {
|
||||
EXPECT_TRUE(Constructed.insert(this).second);
|
||||
}
|
||||
CtorTester &operator=(const CtorTester &) = default;
|
||||
~CtorTester() {
|
||||
EXPECT_EQ(1u, Constructed.erase(this));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user