1 // RUN: %clang_cc1 -analyze -analyzer-checker=core,experimental.core -analyzer-store=region -analyzer-constraints=range -verify -Wno-null-dereference %s
4 typedef typeof(sizeof(int)) size_t;
8 int const &i = 3; // <--- **FIXME** This is currently not being modeled correctly.
20 // These next two tests just shouldn't crash.
26 // just a sanity test, the same behavior as t1()
32 // Each of the tests below is repeated with pointers as well as references.
33 // This is mostly a sanity check, but then again, both should work!
36 r = 'c'; // no-warning
38 return *(char*)0; // no-warning
43 *p = 'c'; // no-warning
45 return *(char*)0; // no-warning
49 r = 'c'; // no-warning
51 return *(char*)0; // no-warning
55 *p = 'c'; // no-warning
57 return *(char*)0; // no-warning