summaryrefslogtreecommitdiff
path: root/utests
diff options
context:
space:
mode:
authorLu Guanqun <guanqun.lu@intel.com>2013-04-10 16:11:59 +0800
committerZhigang Gong <zhigang.gong@linux.intel.com>2013-04-11 16:47:29 +0800
commit6d2c0af1db2586469eb9d1d1f07232dc2ae8fa8e (patch)
tree33289ead85001fcbcc2f05c19484f2adb769ed8c /utests
parent45c9d0c00fc213d668275f3fe16af6b409134d75 (diff)
release the contraint of volatile pointer
Signed-off-by: Lu Guanqun <guanqun.lu@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'utests')
-rw-r--r--utests/CMakeLists.txt1
-rw-r--r--utests/compiler_volatile.cpp9
2 files changed, 10 insertions, 0 deletions
diff --git a/utests/CMakeLists.txt b/utests/CMakeLists.txt
index a47dc248..efa1ae21 100644
--- a/utests/CMakeLists.txt
+++ b/utests/CMakeLists.txt
@@ -64,6 +64,7 @@ ADD_LIBRARY(utests SHARED
compiler_local_memory_barrier.cpp
compiler_local_memory_barrier_wg64.cpp
compiler_movforphi_undef.cpp
+ compiler_volatile.cpp
runtime_createcontext.cpp
utest_assert.cpp
utest.cpp
diff --git a/utests/compiler_volatile.cpp b/utests/compiler_volatile.cpp
new file mode 100644
index 00000000..f4fe054b
--- /dev/null
+++ b/utests/compiler_volatile.cpp
@@ -0,0 +1,9 @@
+#include "utest_helper.hpp"
+
+void compiler_volatile(void)
+{
+ // Setup kernel and buffers
+ OCL_CREATE_KERNEL("compiler_volatile");
+}
+
+MAKE_UTEST_FROM_FUNCTION(compiler_volatile);