diff --git a/test/regression/bug7624.cpp b/test/regression/bug7624.cpp index 48dc49e..09191e2 100644 --- a/test/regression/bug7624.cpp +++ b/test/regression/bug7624.cpp @@ -7,12 +7,13 @@ using namespace boost::phoenix; int main() { - char X('x'), Y ; + char X('x'); find(boost::as_literal("fox"), 'x')(); // works #ifndef BOOST_NO_CXX11_DECLTYPE - Y = find(boost::as_literal("fox"), arg1)('x'); // works for C++11 + const char *Y = find(boost::as_literal("fox"), arg1)('x'); // works for C++11 #else - Y = find(boost::as_literal("fox"), construct(arg1))('x'); // works + const char *Y = find(boost::as_literal("fox"), construct(arg1))('x'); // works #endif - BOOST_TEST(X==Y); + BOOST_TEST(X == *Y); + }