From 6055449a9c5c8a42e3a629ddd36f6d5ad56bdd92 Mon Sep 17 00:00:00 2001 From: John Fletcher Date: Sun, 2 Feb 2014 11:31:25 +0000 Subject: [PATCH] test/regression/bug7624.cpp Revised version --- test/regression/bug7624.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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); + }