diff --git a/test/core/core_type_cast.cpp b/test/core/core_type_cast.cpp index cb121c87..47b79333 100644 --- a/test/core/core_type_cast.cpp +++ b/test/core/core_type_cast.cpp @@ -9,6 +9,12 @@ #include +struct my_vec2 +{ + operator glm::vec2() { return glm::vec2(x, y); } + float x, y; +}; + int test_vec2_cast() { glm::vec2 A(1.0f, 2.0f); @@ -21,6 +27,9 @@ int test_vec2_cast() glm::mediump_vec2 G = static_cast(A); glm::highp_vec2 H = static_cast(A); + my_vec2 I; + glm::vec2 J = static_cast(I); + int Error(0); Error += glm::all(glm::equal(A, E)) ? 0 : 1;