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 | 41189656ed5ef78c8ad507444b39e2dd2c013762 (patch) | |
tree | d5b700c22884a4fef18e679e1f933ed652b8fe6a /clang/test/SemaCXX/nullptr_in_arithmetic_ops.cpp | |
parent | 032fa65606e26b2e5ccf43e0ff91cf0c2abf370f (diff) | |
download | bcm5719-llvm-41189656ed5ef78c8ad507444b39e2dd2c013762.tar.gz bcm5719-llvm-41189656ed5ef78c8ad507444b39e2dd2c013762.zip |
Revert "DR583, DR1512: Implement a rewrite to C++'s 'composite pointer type' rules."
This reverts commit r284800, as it failed all ARM/AArch64 bots.
llvm-svn: 284811
Diffstat (limited to 'clang/test/SemaCXX/nullptr_in_arithmetic_ops.cpp')
-rw-r--r-- | clang/test/SemaCXX/nullptr_in_arithmetic_ops.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/SemaCXX/nullptr_in_arithmetic_ops.cpp b/clang/test/SemaCXX/nullptr_in_arithmetic_ops.cpp index 6273d9c42e0..60b4670b3a5 100644 --- a/clang/test/SemaCXX/nullptr_in_arithmetic_ops.cpp +++ b/clang/test/SemaCXX/nullptr_in_arithmetic_ops.cpp @@ -45,12 +45,12 @@ void foo() { b = a == nullptr || nullptr == a; // expected-error 2{{invalid operands to binary expression}} b = a != nullptr || nullptr != a; // expected-error 2{{invalid operands to binary expression}} - b = &a < nullptr || nullptr < &a || &a > nullptr || nullptr > &a; // expected-error 4{{invalid operands}} - b = &a <= nullptr || nullptr <= &a || &a >= nullptr || nullptr >= &a; // expected-error 4{{invalid operands}} + b = &a < nullptr || nullptr < &a || &a > nullptr || nullptr > &a; + b = &a <= nullptr || nullptr <= &a || &a >= nullptr || nullptr >= &a; b = &a == nullptr || nullptr == &a || &a != nullptr || nullptr != &a; - b = nullptr < nullptr || nullptr > nullptr; // expected-error 2{{invalid operands to binary expression}} - b = nullptr <= nullptr || nullptr >= nullptr; // expected-error 2{{invalid operands to binary expression}} + b = nullptr < nullptr || nullptr > nullptr; + b = nullptr <= nullptr || nullptr >= nullptr; b = nullptr == nullptr || nullptr != nullptr; b = ((nullptr)) != a; // expected-error{{invalid operands to binary expression}} |