Test cases moved to SemaOpenCL folder.
Diff Detail
Event Timeline
test/CodeGenOpenCL/ternary-implicit-casts-fail.cl | ||
---|---|---|
2 ↗ | (On Diff #46275) | Don't do XFAIL tests - they will be "ok" regardless of the failure type. Make sure you're checking the exact error message, etc. |
test/CodeGenOpenCL/ternary-implicit-casts-succ.cl | ||
5 ↗ | (On Diff #46275) | What we're checking here? If this is codegen test, then you need to check for generated IR. It looks like a sema bug / test. |
test/CodeGenOpenCL/ternary-implicit-casts-fail.cl | ||
---|---|---|
2 ↗ | (On Diff #46275) | Unable to use expected-error {{}}. |
test/CodeGenOpenCL/ternary-implicit-casts-succ.cl | ||
5 ↗ | (On Diff #46275) | Here we checking assignment operator. Variable 'ptr' is in generic address space and should take both global and local values. |
test/CodeGenOpenCL/ternary-implicit-casts-fail.cl | ||
---|---|---|
2 ↗ | (On Diff #46275) | This is either bug in expected-error stuff (which I honestly doubt) or you did something wrong. |
test/CodeGenOpenCL/ternary-implicit-casts-fail.cl | ||
---|---|---|
2 ↗ | (On Diff #46275) | I'll send the patch to llvm-dev to find out what's the reason of expected-error fail. |
BugZilla page: https://llvm.org/bugs/show_bug.cgi?id=19957.
I'll hold off working on this bug, until expected-result {{ }} question will be solved.
test/CodeGenOpenCL/ternary-implicit-casts-fail.cl | ||
---|---|---|
2 ↗ | (On Diff #46275) | It was my error: I forgot add -verify parameter. |
test/SemaOpenCL/ternary-implicit-casts.cl | ||
---|---|---|
6 | Again, I am not quite clear about the purpose of this change. We have similar testing in test/SemaOpenCL/address-spaces-conversions-cl2.0.cl. However, the diagnostics, that Clang currently gives, seem wrong to me. We might need to investigate that. |
test/SemaOpenCL/ternary-implicit-casts.cl | ||
---|---|---|
6 | This test point is the ternary operator. It displays that ternary operator may return not only in different values, but also different address spaces. I do not see such check in address-spaces-conversions-cl2.0.cl. |
test/SemaOpenCL/ternary-implicit-casts.cl | ||
---|---|---|
10–11 | Note that test doesn't specify OpenCL version. By default it's 1.0, so ptr points to private AS and it's illegal to cast pointers from different address spaces in OpenCL v1.x. |
It looks like there's more todo to close this bug.
Let's go back to bug discussion at: https://llvm.org/bugs/show_bug.cgi?id=19957
test/SemaOpenCL/ternary-implicit-casts.cl | ||
---|---|---|
10–11 | Let's discuss in https://llvm.org/bugs/show_bug.cgi?id=19957 |
Again, I am not quite clear about the purpose of this change.
We have similar testing in test/SemaOpenCL/address-spaces-conversions-cl2.0.cl.
However, the diagnostics, that Clang currently gives, seem wrong to me. We might need to investigate that.