1 // RUN: %clang_cc1 -analyze -analyzer-experimental-internal-checks -analyzer-check-objc-mem -analyzer-store=region -analyzer-constraints=range -verify %s
2 typedef typeof(sizeof(int)) size_t;
18 // These next two tests just shouldn't crash.
24 // just a sanity test, the same behavior as t1()
30 // Each of the tests below is repeated with pointers as well as references.
31 // This is mostly a sanity check, but then again, both should work!
34 r = 'c'; // no-warning
36 return *(char*)0; // no-warning
41 *p = 'c'; // no-warning
43 return *(char*)0; // no-warning
47 r = 'c'; // no-warning
49 return *(char*)0; // no-warning
53 *p = 'c'; // no-warning
55 return *(char*)0; // no-warning