diff --git a/modules/core/test/test_mat.cpp b/modules/core/test/test_mat.cpp index 7f2451e842..9ec196ba66 100644 --- a/modules/core/test/test_mat.cpp +++ b/modules/core/test/test_mat.cpp @@ -1725,4 +1725,12 @@ TEST(Core_Mat_array, SplitMerge) EXPECT_EQ(0, countNonZero(diff)); } } -#endif \ No newline at end of file +#endif + +TEST(Mat, regression_8680) +{ + Mat_ mat(3,1); + ASSERT_EQ(mat.channels(), 2); + mat.release(); + ASSERT_EQ(mat.channels(), 2); +}