Added test for sequence syntax (to run with and without variadic macro support) and disabled variadic syntax test when variadic macros are not supported.

Updated docs.

[SVN r77078]
This commit is contained in:
Lorenzo Caminiti
2012-02-20 20:07:29 +00:00
parent 8b05032051
commit b84f29c030
82 changed files with 1381 additions and 216 deletions

View File

@@ -13,7 +13,7 @@
#include <boost/test/unit_test.hpp>
#include <algorithm>
BOOST_AUTO_TEST_CASE( test_gcc_lambda ) {
BOOST_AUTO_TEST_CASE(test_gcc_lambda) {
//[gcc_lambda
int val = 2;
int nums[] = {1, 2, 3};
@@ -26,13 +26,13 @@ BOOST_AUTO_TEST_CASE( test_gcc_lambda ) {
);
//]
BOOST_CHECK( iter != end );
BOOST_CHECK( *iter == val );
BOOST_CHECK(iter != end);
BOOST_CHECK(*iter == val);
}
#else // GCC || !NO_LAMBDAS
#else
int main(void) { return 0; }
int main(void) { return 0; } // Trivial test.
#endif // GCC || !NO_LAMBDAS
#endif