The OpenCL specification and conformance tests have code similar to;
void func(event_t e); ... func((event_t)0);
Clang (in OpenCL language mode) currently supports the above, but without the explicit cast, like;
func(0);
But doesn't allow the explicit cast. This patch fixes this, and also adds in a more descriptive error for when a user does;
(event_t)5;
and also adds in some more expected results to the OpenCL event_t tests.
Any comments or suggestions would be greatly appreciated!
err_, not error_.