|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r48939 - in branches/initializer-list/libs/config/test: . all
From: daniel_james_at_[hidden]
Date: 2008-09-24 06:56:24
Author: danieljames
Date: 2008-09-24 06:56:23 EDT (Wed, 24 Sep 2008)
New Revision: 48939
URL: http://svn.boost.org/trac/boost/changeset/48939
Log:
Add tests for BOOST_NO_INITIALIZER_LISTS. Refs #2332
Added:
branches/initializer-list/libs/config/test/boost_no_initializer_lists.ipp
- copied unchanged from r48934, /trunk/libs/config/test/boost_no_initializer_lists.ipp
branches/initializer-list/libs/config/test/no_initializer_lists_fail.cpp (contents, props changed)
branches/initializer-list/libs/config/test/no_initializer_lists_pass.cpp (contents, props changed)
Text files modified:
branches/initializer-list/libs/config/test/all/Jamfile.v2 | 5 ++++-
branches/initializer-list/libs/config/test/config_info.cpp | 2 ++
branches/initializer-list/libs/config/test/config_test.cpp | 12 +++++++++++-
3 files changed, 17 insertions(+), 2 deletions(-)
Modified: branches/initializer-list/libs/config/test/all/Jamfile.v2
==============================================================================
--- branches/initializer-list/libs/config/test/all/Jamfile.v2 (original)
+++ branches/initializer-list/libs/config/test/all/Jamfile.v2 2008-09-24 06:56:23 EDT (Wed, 24 Sep 2008)
@@ -1,7 +1,7 @@
#
# Regression test Jamfile for boost configuration setup.
# *** DO NOT EDIT THIS FILE BY HAND ***
-# This file was automatically generated on Sat Sep 20 09:49:52 2008
+# This file was automatically generated on Wed Sep 24 11:44:22 2008
# by libs/config/tools/generate.cpp
# Copyright John Maddock.
# Use, modification and distribution are subject to the
@@ -232,6 +232,9 @@
test-suite "BOOST_NO_MS_INT64_NUMERIC_LIMITS" :
[ run ../no_i64_limits_pass.cpp ]
[ compile-fail ../no_i64_limits_fail.cpp ] ;
+test-suite "BOOST_NO_INITIALIZER_LISTS" :
+[ run ../no_initializer_lists_pass.cpp ]
+[ compile-fail ../no_initializer_lists_fail.cpp ] ;
test-suite "BOOST_NO_INCLASS_MEMBER_INITIALIZATION" :
[ run ../no_inline_memb_init_pass.cpp ]
[ compile-fail ../no_inline_memb_init_fail.cpp ] ;
Modified: branches/initializer-list/libs/config/test/config_info.cpp
==============================================================================
--- branches/initializer-list/libs/config/test/config_info.cpp (original)
+++ branches/initializer-list/libs/config/test/config_info.cpp 2008-09-24 06:56:23 EDT (Wed, 24 Sep 2008)
@@ -969,6 +969,7 @@
PRINT_MACRO(BOOST_NO_FUNCTION_TEMPLATE_ORDERING);
PRINT_MACRO(BOOST_NO_FUNCTION_TYPE_SPECIALIZATIONS);
PRINT_MACRO(BOOST_NO_INCLASS_MEMBER_INITIALIZATION);
+ PRINT_MACRO(BOOST_NO_INITIALIZER_LISTS);
PRINT_MACRO(BOOST_NO_INTEGRAL_INT64_T);
PRINT_MACRO(BOOST_NO_INTRINSIC_WCHAR_T);
PRINT_MACRO(BOOST_NO_IOSFWD);
@@ -1041,6 +1042,7 @@
+
// END GENERATED BLOCK
PRINT_MACRO(BOOST_INTEL);
Modified: branches/initializer-list/libs/config/test/config_test.cpp
==============================================================================
--- branches/initializer-list/libs/config/test/config_test.cpp (original)
+++ branches/initializer-list/libs/config/test/config_test.cpp 2008-09-24 06:56:23 EDT (Wed, 24 Sep 2008)
@@ -1,4 +1,4 @@
-// This file was automatically generated on Sat Sep 20 09:49:52 2008
+// This file was automatically generated on Wed Sep 24 11:44:22 2008
// by libs/config/tools/generate.cpp
// Copyright John Maddock 2002-4.
// Use, modification and distribution are subject to the
@@ -117,6 +117,11 @@
#else
namespace boost_no_ms_int64_numeric_limits = empty_boost;
#endif
+#ifndef BOOST_NO_INITIALIZER_LISTS
+#include "boost_no_initializer_lists.ipp"
+#else
+namespace boost_no_initializer_lists = empty_boost;
+#endif
#ifndef BOOST_NO_INCLASS_MEMBER_INITIALIZATION
#include "boost_no_inline_memb_init.ipp"
#else
@@ -966,6 +971,11 @@
std::cerr << "Failed test for BOOST_NO_MS_INT64_NUMERIC_LIMITS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
+ if(0 != boost_no_initializer_lists::test())
+ {
+ std::cerr << "Failed test for BOOST_NO_INITIALIZER_LISTS at: " << __FILE__ << ":" << __LINE__ << std::endl;
+ ++error_count;
+ }
if(0 != boost_no_inclass_member_initialization::test())
{
std::cerr << "Failed test for BOOST_NO_INCLASS_MEMBER_INITIALIZATION at: " << __FILE__ << ":" << __LINE__ << std::endl;
Added: branches/initializer-list/libs/config/test/no_initializer_lists_fail.cpp
==============================================================================
--- (empty file)
+++ branches/initializer-list/libs/config/test/no_initializer_lists_fail.cpp 2008-09-24 06:56:23 EDT (Wed, 24 Sep 2008)
@@ -0,0 +1,37 @@
+// This file was automatically generated on Wed Sep 24 11:44:21 2008
+// by libs/config/tools/generate.cpp
+// Copyright John Maddock 2002-4.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+
+// See http://www.boost.org/libs/config for the most recent version.//
+// Revision $Id$
+//
+
+
+// Test file for macro BOOST_NO_INITIALIZER_LISTS
+// This file should not compile, if it does then
+// BOOST_NO_INITIALIZER_LISTS should not be defined.
+// See file boost_no_initializer_lists.ipp for details
+
+// Must not have BOOST_ASSERT_CONFIG set; it defeats
+// the objective of this file:
+#ifdef BOOST_ASSERT_CONFIG
+# undef BOOST_ASSERT_CONFIG
+#endif
+
+#include <boost/config.hpp>
+#include "test.hpp"
+
+#ifdef BOOST_NO_INITIALIZER_LISTS
+#include "boost_no_initializer_lists.ipp"
+#else
+#error "this file should not compile"
+#endif
+
+int main( int, char *[] )
+{
+ return boost_no_initializer_lists::test();
+}
+
Added: branches/initializer-list/libs/config/test/no_initializer_lists_pass.cpp
==============================================================================
--- (empty file)
+++ branches/initializer-list/libs/config/test/no_initializer_lists_pass.cpp 2008-09-24 06:56:23 EDT (Wed, 24 Sep 2008)
@@ -0,0 +1,37 @@
+// This file was automatically generated on Wed Sep 24 11:44:21 2008
+// by libs/config/tools/generate.cpp
+// Copyright John Maddock 2002-4.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+
+// See http://www.boost.org/libs/config for the most recent version.//
+// Revision $Id$
+//
+
+
+// Test file for macro BOOST_NO_INITIALIZER_LISTS
+// This file should compile, if it does not then
+// BOOST_NO_INITIALIZER_LISTS should be defined.
+// See file boost_no_initializer_lists.ipp for details
+
+// Must not have BOOST_ASSERT_CONFIG set; it defeats
+// the objective of this file:
+#ifdef BOOST_ASSERT_CONFIG
+# undef BOOST_ASSERT_CONFIG
+#endif
+
+#include <boost/config.hpp>
+#include "test.hpp"
+
+#ifndef BOOST_NO_INITIALIZER_LISTS
+#include "boost_no_initializer_lists.ipp"
+#else
+namespace boost_no_initializer_lists = empty_boost;
+#endif
+
+int main( int, char *[] )
+{
+ return boost_no_initializer_lists::test();
+}
+
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk