1 // RUN: %clang_cc1 -analyze -analyzer-experimental-internal-checks -analyzer-check-objc-mem -analyzer-store=region -analyzer-constraints=range -verify %s
3 typedef typeof(sizeof(int)) size_t;
7 int const &i
= 3; // <--- **FIXME** This is currently not being modeled correctly.
19 // These next two tests just shouldn't crash.
25 // just a sanity test, the same behavior as t1()
31 // Each of the tests below is repeated with pointers as well as references.
32 // This is mostly a sanity check, but then again, both should work!
35 r
= 'c'; // no-warning
37 return *(char*)0; // no-warning
42 *p
= 'c'; // no-warning
44 return *(char*)0; // no-warning
48 r
= 'c'; // no-warning
50 return *(char*)0; // no-warning
54 *p
= 'c'; // no-warning
56 return *(char*)0; // no-warning