--- /dev/null
+/* test case for OpenCL 1.1 Preprocessor Directives & Macros (section 6.9) */
+__kernel void compiler_preprocessor_macros()
+{
+#pragma OPENCL FP_CONTRACT ON
+#pragma OPENCL FP_CONTRACT OFF
+#pragma OPENCL FP_CONTRACT DEFAULT
+ int i = __OPENCL_VERSION__;
+ i = __CL_VERSION_1_0__;
+ i = __CL_VERSION_1_1__;
+ i = __ENDIAN_LITTLE__;
+ i = __IMAGE_SUPPORT__;
+ i = __FAST_RELAXED_MATH__;
+}
--- /dev/null
+#include "utest_helper.hpp"
+
+void compiler_preprocessor_macros(void)
+{
+ OCL_CREATE_KERNEL("compiler_preprocessor_macros");
+}
+
+MAKE_UTEST_FROM_FUNCTION(compiler_preprocessor_macros);
+