intel_test.cpp 787 B

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