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