blob: 2b29b043923a31e5ba86a210974a7801efb07064 [file] [log] [blame]
Richard Smith762bb9d2011-10-13 22:29:44 +00001// RUN: %clang_cc1 -std=c++11 -fblocks -fsyntax-only -verify %s
Douglas Gregor17e37c72011-06-01 15:12:24 +00002
3@interface A
4@end
5
6void comparisons(A *a) {
7 (void)(a == nullptr);
8 (void)(nullptr == a);
9}
10
11void assignment(A *a) {
12 a = nullptr;
13}
Douglas Gregor16cd4b72011-06-16 18:52:05 +000014
15int PR10145a = (void(^)())0 == nullptr;
16int PR10145b = nullptr == (void(^)())0;