summaryrefslogtreecommitdiff
path: root/libs/phoenix/test/scope/more_lambda_tests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/phoenix/test/scope/more_lambda_tests.cpp')
-rw-r--r--libs/phoenix/test/scope/more_lambda_tests.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/libs/phoenix/test/scope/more_lambda_tests.cpp b/libs/phoenix/test/scope/more_lambda_tests.cpp
index 3f5302773..ea9209dc7 100644
--- a/libs/phoenix/test/scope/more_lambda_tests.cpp
+++ b/libs/phoenix/test/scope/more_lambda_tests.cpp
@@ -22,10 +22,10 @@ main()
using boost::phoenix::ref;
using boost::phoenix::val;
using boost::phoenix::arg_names::_1;
- using boost::phoenix::arg_names::_2;
+ //using boost::phoenix::arg_names::_2;
using boost::phoenix::local_names::_a;
- using boost::phoenix::local_names::_b;
- using boost::phoenix::placeholders::arg1;
+ // using boost::phoenix::local_names::_b;
+ //using boost::phoenix::placeholders::arg1;
{
int x = 1;
@@ -39,4 +39,10 @@ main()
BOOST_TEST(x+1 == y);
}
+ {
+ int x = lambda[val(1)]()();
+ BOOST_TEST(x == 1);
+ }
+
+ return boost::report_errors();
}