diff --git a/tests/test_openclhpp.cpp b/tests/test_openclhpp.cpp index c794b16b..fd7ed5d1 100644 --- a/tests/test_openclhpp.cpp +++ b/tests/test_openclhpp.cpp @@ -1310,6 +1310,7 @@ void testBufferConstructorQueueIterator(void) clReleaseCommandQueue_ExpectAndReturn(make_command_queue(0), CL_SUCCESS); } +#if CL_HPP_TARGET_OPENCL_VERSION >= 300 static cl_mem clCreateBufferWithProperties_testBufferWithProperties( cl_context context, const cl_mem_properties *properties, @@ -1334,7 +1335,6 @@ static cl_mem clCreateBufferWithProperties_testBufferWithProperties( void testBufferWithProperties(void) { -#if CL_HPP_TARGET_OPENCL_VERSION >= 300 clCreateBufferWithProperties_StubWithCallback(clCreateBufferWithProperties_testBufferWithProperties); VECTOR_CLASS props{11}; @@ -1346,8 +1346,8 @@ void testBufferWithProperties(void) // prevent destructor from interfering with the test buffer() = nullptr; -#endif } +#endif //CL_HPP_TARGET_OPENCL_VERSION >= 300 /**************************************************************************** * Tests for cl::Image1DBuffer