1 // RUN: %clang_cc1 -analyze -analyzer-checker=core -analyzer-store=flat -Wno-null-dereference -verify %s
2 #define FAIL ((void)*(char*)0)
3 struct simple
{ int x
; };
9 if (!p
[0].x
) FAIL
; // no-warning
10 if (p
[0].x
) FAIL
; // expected-warning {{null}}