diff options
author | Renato Golin <renato.golin@linaro.org> | 2016-10-21 08:03:49 +0000 |
---|---|---|
committer | Renato Golin <renato.golin@linaro.org> | 2016-10-21 08:03:49 +0000 |
commit | 3fc87cc1a866de42ab16176f0f2bbc12fcb12176 (patch) | |
tree | 685c943818f22ea60d5a7920561dfaf746837118 /test/SemaObjCXX | |
parent | f6019fd91fb15332686bdb9d18b6f54d25c9bf34 (diff) |
Revert "DR583, DR1512: Implement a rewrite to C++'s 'composite pointer type' rules."
This reverts commit r284800, as it failed all ARM/AArch64 bots.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@284811 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaObjCXX')
-rw-r--r-- | test/SemaObjCXX/null_objc_pointer.mm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/SemaObjCXX/null_objc_pointer.mm b/test/SemaObjCXX/null_objc_pointer.mm index 2be397e31e..e0232bf3c8 100644 --- a/test/SemaObjCXX/null_objc_pointer.mm +++ b/test/SemaObjCXX/null_objc_pointer.mm @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wnull-arithmetic %s +// expected-no-diagnostics #define NULL __null @interface X @@ -7,7 +8,7 @@ void f() { bool b; X *d; - b = d < NULL || NULL < d || d > NULL || NULL > d; // expected-error 4{{ordered comparison between pointer and zero}} - b = d <= NULL || NULL <= d || d >= NULL || NULL >= d; // expected-error 4{{ordered comparison between pointer and zero}} + b = d < NULL || NULL < d || d > NULL || NULL > d; + b = d <= NULL || NULL <= d || d >= NULL || NULL >= d; b = d == NULL || NULL == d || d != NULL || NULL != d; } |