1// RUN: %clang_cc1 -fsyntax-only -verify -Wnull-arithmetic %s 2// expected-no-diagnostics 3#define NULL __null 4 5@interface X 6@end 7 8void f() { 9 bool b; 10 X *d; 11 b = d < NULL || NULL < d || d > NULL || NULL > d; 12 b = d <= NULL || NULL <= d || d >= NULL || NULL >= d; 13 b = d == NULL || NULL == d || d != NULL || NULL != d; 14} 15