Skip to content

Commit

Permalink
Adding test (should fail on macOS)
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii authored and jszuppe committed Feb 10, 2019
1 parent 924ed68 commit 0ab199c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/test_kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,21 @@ BOOST_AUTO_TEST_CASE(kernel_set_args)
}
#endif // BOOST_COMPUTE_NO_VARIADIC_TEMPLATES

// Originally failed to compile on macOS (several types are resolved differently)
BOOST_AUTO_TEST_CASE(kernel_set_args_mac)
{
compute::kernel k = compute::kernel::create_with_source(
"__kernel void test(unsigned int a, unsigned long b) { }", "test", context
);

unsigned int a;
unsigned long b;

k.set_arg(0, a);
k.set_arg(1, b);
}


#ifdef BOOST_COMPUTE_CL_VERSION_1_2
BOOST_AUTO_TEST_CASE(get_arg_info)
{
Expand Down

0 comments on commit 0ab199c

Please sign in to comment.