Home | History | Annotate | Download | only in SemaObjCXX
      1 // RUN: %clang_cc1 -std=c++11 -fblocks -fsyntax-only -verify %s
      2 // expected-no-diagnostics
      3 
      4 @interface A
      5 @end
      6 
      7 void comparisons(A *a) {
      8   (void)(a == nullptr);
      9   (void)(nullptr == a);
     10 }
     11 
     12 void assignment(A *a) {
     13   a = nullptr;
     14 }
     15 
     16 int PR10145a = (void(^)())0 == nullptr;
     17 int PR10145b = nullptr == (void(^)())0;
     18