From 8f03aeac4ebeebef3cb53a75be6b0d6f15dba2c2 Mon Sep 17 00:00:00 2001 From: Niels Dekker Date: Sun, 16 Sep 2007 09:48:28 +0000 Subject: [PATCH] Added unit test to make sure that Visual C++ 7.1 ICE reported by Ralf W. Grosse-Kunstleve (Boost Developers mailing list, subject "utility/value_init.hpp: VC 7.1 ICE & workaround") will not occur anymore. [SVN r39309] --- value_init_test.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/value_init_test.cpp b/value_init_test.cpp index fe73cc1..08f9b87 100644 --- a/value_init_test.cpp +++ b/value_init_test.cpp @@ -95,6 +95,9 @@ int test_main(int, char **) test( POD(0,0,0.0), POD('a',1234,56.78) ) ; test( NonPOD( std::string() ), NonPOD( std::string("something") ) ) ; + NonPOD NonPOD_object( std::string("NonPOD_object") ); + test( 0, &NonPOD_object ) ; + return 0; }