diff --git a/packages/c/clblast/xmake.lua b/packages/c/clblast/xmake.lua index 0d386db54..06ab0bdb5 100644 --- a/packages/c/clblast/xmake.lua +++ b/packages/c/clblast/xmake.lua @@ -50,3 +50,19 @@ package("clblast") import("package.tools.cmake").install(package, configs) end) + + on_test(function (package) + assert(package:check_cxxsnippets({test = [[ + #include + void test () { + clblast::ClearCache(); + } + ]]}, {configs = {languages = "c++11"}})) + + assert(package:check_csnippets({test = [[ + #include + void test () { + CLBlastClearCache(); + } + ]]}, {configs = {languages = "c11"}})) + end) \ No newline at end of file