#include <iostream>
class Test {
public:
Test(int x) : m(x) {}
Test(const Test&) = delete;
Test& operator=(const Test&) = delete;
int m;
};
int main()
{
Test t1(87), t2(72), t3(98);
t1 = t2; // Error cannot be referenced -- it is a deleted function
t3 = Test(t1); // Error cannot be referenced -- it is a deleted function
return 0;
}
/*
run:
*/