cm_cxx_eq_delete.cxx 193 B

1234567891011121314
  1. struct Foo
  2. {
  3. Foo() {}
  4. ~Foo() {}
  5. Foo(Foo const&) = delete;
  6. Foo& operator=(Foo const&) = delete;
  7. int test() const { return 0; }
  8. };
  9. int main()
  10. {
  11. Foo const foo;
  12. return foo.test();
  13. }