Consider the code:
#pragma OPENCL EXTENSION cl_intel_planar_yuv : begin // some declarations #pragma OPENCL EXTENSION cl_intel_planar_yuv : end
is enough for extension to become known for clang.
Remove unnecessary definition (otherwise the extension will be define where it's not supposed to be defined).
Can we also test that macro my_ext is not defined here but defined above?
It seems we are not testing anything like this...