summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaOpenCL
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2018-06-27 20:30:34 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2018-06-27 20:30:34 +0000
commit1ef7554efd1ad0b12fc426086bbb6d9b8779a738 (patch)
tree02073956d87f2e2e0cdae60d5448a9fcb4fd380e /clang/test/SemaOpenCL
parent03e0d2d82be7dbe5adc2558fc11ad2a1c89a53d3 (diff)
downloadbcm5719-llvm-1ef7554efd1ad0b12fc426086bbb6d9b8779a738.tar.gz
bcm5719-llvm-1ef7554efd1ad0b12fc426086bbb6d9b8779a738.zip
DR1687: When overload resolution selects a built-in operator, implicit
conversions are only applied to operands of class type, and the second standard conversion sequence is not applied. When diagnosing an invalid builtin binary operator, talk about the original types rather than the converted types. If these differ by a user-defined conversion, tell the user what happened. llvm-svn: 335781
Diffstat (limited to 'clang/test/SemaOpenCL')
-rw-r--r--clang/test/SemaOpenCL/logical-ops.cl2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaOpenCL/logical-ops.cl b/clang/test/SemaOpenCL/logical-ops.cl
index 42501b14413..f6972c46e2a 100644
--- a/clang/test/SemaOpenCL/logical-ops.cl
+++ b/clang/test/SemaOpenCL/logical-ops.cl
@@ -29,7 +29,7 @@ kernel void float_ops() {
#if __OPENCL_C_VERSION__ < 120
// expected-error@-2{{invalid operands}}
#endif
- float ibaf = 0 & 0.0f; // expected-error {{invalid operands}}
+ float ibaf = 0 & 0.0f; // expected-error {{invalid operands to binary expression ('int' and 'float')}}
float ibof = 0 | 0.0f; // expected-error {{invalid operands}}
float bnf = ~0.0f;// expected-error {{invalid argument type}}
float lnf = !0.0f;
OpenPOWER on IntegriCloud