summaryrefslogtreecommitdiffstats
path: root/Source/Checks/cm_cxx_eq_delete.cxx
blob: 809e4cfcf337fcd7fd42f7f72b1527983aefb6b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
struct Foo
{
  Foo() {}
  ~Foo() {}
  Foo(Foo const&) = delete;
  Foo& operator=(Foo const&) = delete;
  int test() const { return 0; }
};

int main()
{
  Foo const foo;
  return foo.test();
}