From 84e05bbbb336095cdac880a58b4ec267b495220b Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Fri, 20 Jun 2014 01:46:28 +0200 Subject: [PATCH] Added test for issue #214 --- test/core/core_type_cast.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/test/core/core_type_cast.cpp b/test/core/core_type_cast.cpp index 7c002886..f86b9649 100644 --- a/test/core/core_type_cast.cpp +++ b/test/core/core_type_cast.cpp @@ -9,6 +9,9 @@ #define GLM_FORCE_RADIANS #include +#include +#include +#include struct my_vec2 { @@ -86,10 +89,23 @@ int test_vec4_cast() return Error; } +int test_std_copy() +{ + int Error = 0; + + std::vector High; + std::vector Medium(High.size()); + + std::copy(High.begin(), Medium.end(), Medium.begin()); + + return Error; +} + int main() { int Error = 0; + Error += test_std_copy(); Error += test_vec2_cast(); Error += test_vec3_cast(); Error += test_vec4_cast();