operator-calls.cpp revision 6dd4dffe1090e820e9b5b25eee8ad3907a1aa679
1// RUN: %clang_cc1 -analyze -analyzer-checker=core.experimental -analyzer-check-objc-mem -verify %s
2struct X0 { };
3bool operator==(const X0&, const X0&);
4
5// PR7287
6struct test { int a[2]; };
7
8void t2() {
9  test p = {{1,2}};
10  test q;
11  q = p;
12}
13
14bool PR7287(X0 a, X0 b) {
15  return operator==(a, b);
16}
17