diff --git a/test/test_zfunction.cpp b/test/test_zfunction.cpp index 39b307c..c83cba2 100644 --- a/test/test_zfunction.cpp +++ b/test/test_zfunction.cpp @@ -140,5 +140,25 @@ namespace xt EXPECT_EQ(zres.get_array(), expected); } + + TEST_CASE("bad_function_call") + { + + zdispatcher_t::init(); + zdispatcher_t::init(); + + auto x0 = xarray::from_shape({2,2}); + auto x1 = xarray::from_shape({2,2}); + + zarray z0(x0); + zarray z1(x1); + + auto res = xarray::from_shape({2,2}); + zarray zres(res); + + zres = z0 + z1; + + } + } TEST_SUITE_END(); \ No newline at end of file