--- /dev/null
+/* OpenCL 1.1 Supported Data Types */
+__kernel void compiler_data_types()
+{
+ // built-in scalar data types (section 6.1.1)
+ bool b;
+ char c;
+ unsigned char uc;
+ uchar uc_2;
+ short s;
+ unsigned short us;
+ ushort us_2;
+ int i;
+ unsigned int ui;
+ uint ui_2;
+ long l;
+ unsigned long ul;
+ ulong ul_2;
+ float f;
+ half h;
+ size_t sz;
+ ptrdiff_t pt;
+ intptr_t it;
+ uintptr_t uit;
+
+ // built-in vector data types (section 6.1.2)
+ // supported values of $n$ are 2, 3, 4, 8, 16 for all vector data types
+#define VEC(sz) char##sz c##sz; \
+ uchar##sz uc##sz; \
+ short##sz s##sz; \
+ ushort##sz us##sz;\
+ int##sz i##sz; \
+ uint##sz ui##sz; \
+ long##sz l##sz; \
+ ulong##sz ul##sz; \
+ float##sz f##sz;
+#if 0
+ VEC(2);
+ VEC(3);
+ VEC(4);
+ VEC(8);
+ VEC(16);
+#endif
+
+ // Other built-in data types (section 6.1.3)
+ image2d_t i2dt;
+ image3d_t i3dt;
+ sampler_t st;
+ event_t et;
+}
--- /dev/null
+#include "utest_helper.hpp"
+
+void compiler_data_types(void)
+{
+ OCL_CREATE_KERNEL("compiler_data_types");
+}
+
+MAKE_UTEST_FROM_FUNCTION(compiler_data_types);
+