From 7774d33e45a774c0c5659da550790d7705cf5862 Mon Sep 17 00:00:00 2001 From: "hans.dembinski@gmail.com" Date: Sun, 5 Feb 2017 19:24:15 +0000 Subject: [PATCH] really make sure addresses are different --- test/lightweight_test_test.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/lightweight_test_test.cpp b/test/lightweight_test_test.cpp index be87950..a38d9d2 100644 --- a/test/lightweight_test_test.cpp +++ b/test/lightweight_test_test.cpp @@ -65,9 +65,7 @@ int main() BOOST_TEST_EQ( ++x, ++y ); BOOST_TEST_EQ( x++, y++ ); - const char* s1 = "abc"; // make sure addresses are different - const char* s2 = "abc"; // make sure addresses are different - BOOST_TEST_EQ(s1, s2); + BOOST_TEST_EQ("abc", "xxxabc"+3); // make sure addresses are different // BOOST_TEST_NE