1 | /*============================================================================= |
---|---|
2 | Copyright (c) 2001-2007 Joel de Guzman |
3 | |
4 | Distributed under the Boost Software License, Version 1.0. (See accompanying |
5 | file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
6 | ==============================================================================*/ |
7 | #include <iostream> |
8 | |
9 | #include <boost/phoenix/core/argument.hpp> |
10 | #include <boost/phoenix/core/value.hpp> |
11 | #include <boost/detail/lightweight_test.hpp> |
12 | |
13 | using boost::phoenix::val; |
14 | |
15 | int |
16 | main() |
17 | { |
18 | #ifndef BOOST_PHOENIX_NO_PREDEFINED_TERMINALS |
19 | using boost::phoenix::arg_names::_1; |
20 | #else |
21 | boost::phoenix::arg_names::_1_type _1; |
22 | #endif |
23 | |
24 | int i1 = 1; |
25 | |
26 | BOOST_TEST(val(_1)(i1) == i1); |
27 | |
28 | return boost::report_errors(); |
29 | } |
30 |