Skip to content

Commit 0ab199c

Browse files
henryiiijszuppe
authored andcommitted
Adding test (should fail on macOS)
1 parent 924ed68 commit 0ab199c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/test_kernel.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,21 @@ BOOST_AUTO_TEST_CASE(kernel_set_args)
113113
}
114114
#endif // BOOST_COMPUTE_NO_VARIADIC_TEMPLATES
115115

116+
// Originally failed to compile on macOS (several types are resolved differently)
117+
BOOST_AUTO_TEST_CASE(kernel_set_args_mac)
118+
{
119+
compute::kernel k = compute::kernel::create_with_source(
120+
"__kernel void test(unsigned int a, unsigned long b) { }", "test", context
121+
);
122+
123+
unsigned int a;
124+
unsigned long b;
125+
126+
k.set_arg(0, a);
127+
k.set_arg(1, b);
128+
}
129+
130+
116131
#ifdef BOOST_COMPUTE_CL_VERSION_1_2
117132
BOOST_AUTO_TEST_CASE(get_arg_info)
118133
{

0 commit comments

Comments
 (0)