blob: 766d16140ed0d0e240106e156922e87d8c2a11d7 [file] [log] [blame]
Argyrios Kyrtzidisc4d2c902011-02-28 19:49:42 +00001// RUN: %clang_cc1 -analyze -analyzer-checker=core,core.experimental -verify %s
Douglas Gregor90d26a42010-11-01 23:16:05 +00002struct 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) {
Douglas Gregor73a48ad2010-11-01 23:33:11 +000015 return operator==(a, b);
Douglas Gregor90d26a42010-11-01 23:16:05 +000016}