From e41f88e71d2bdba184df592d2b9c7a231696536a Mon Sep 17 00:00:00 2001 From: John Maddock Date: Tue, 6 Jan 2004 13:24:31 +0000 Subject: [PATCH] Fixed broken test cases, and added two new ones that were previously missing from cvs [SVN r21509] --- test/no_array_type_spec_fail.cpp | 36 +++++++++++++++++++++++++++++++ test/no_array_type_spec_pass.cpp | 36 +++++++++++++++++++++++++++++++ test/no_using_breaks_adl_fail.cpp | 2 +- test/no_using_breaks_adl_pass.cpp | 4 ++-- 4 files changed, 75 insertions(+), 3 deletions(-) create mode 100644 test/no_array_type_spec_fail.cpp create mode 100644 test/no_array_type_spec_pass.cpp diff --git a/test/no_array_type_spec_fail.cpp b/test/no_array_type_spec_fail.cpp new file mode 100644 index 00000000..a4577a51 --- /dev/null +++ b/test/no_array_type_spec_fail.cpp @@ -0,0 +1,36 @@ + +// 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. + +// Test file for macro BOOST_NO_ARRAY_TYPE_SPECIALIZATIONS +// This file should not compile, if it does then +// BOOST_NO_ARRAY_TYPE_SPECIALIZATIONS need not be defined. +// see boost_no_array_type_spec.cxx for more details + +// Do not edit this file, it was generated automatically by +// ../tools/generate from boost_no_array_type_spec.cxx on +// Sat Dec 13 12:29:38 GMTST 2003 + +// Must not have BOOST_ASSERT_CONFIG set; it defeats +// the objective of this file: +#ifdef BOOST_ASSERT_CONFIG +# undef BOOST_ASSERT_CONFIG +#endif + +#include +#include "test.hpp" + +#ifdef BOOST_NO_ARRAY_TYPE_SPECIALIZATIONS +#include "boost_no_array_type_spec.cxx" +#else +#error "this file should not compile" +#endif + +int cpp_main( int, char *[] ) +{ + return boost_no_array_type_specializations::test(); +} + diff --git a/test/no_array_type_spec_pass.cpp b/test/no_array_type_spec_pass.cpp new file mode 100644 index 00000000..8b395ffa --- /dev/null +++ b/test/no_array_type_spec_pass.cpp @@ -0,0 +1,36 @@ + +// 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. + +// Test file for macro BOOST_NO_ARRAY_TYPE_SPECIALIZATIONS +// This file should compile, if it does not then +// BOOST_NO_ARRAY_TYPE_SPECIALIZATIONS needs to be defined. +// see boost_no_array_type_spec.cxx for more details + +// Do not edit this file, it was generated automatically by +// ../tools/generate from boost_no_array_type_spec.cxx on +// Sat Dec 13 12:29:38 GMTST 2003 + +// Must not have BOOST_ASSERT_CONFIG set; it defeats +// the objective of this file: +#ifdef BOOST_ASSERT_CONFIG +# undef BOOST_ASSERT_CONFIG +#endif + +#include +#include "test.hpp" + +#ifndef BOOST_NO_ARRAY_TYPE_SPECIALIZATIONS +#include "boost_no_array_type_spec.cxx" +#else +namespace boost_no_array_type_specializations = empty_boost; +#endif + +int cpp_main( int, char *[] ) +{ + return boost_no_array_type_specializations::test(); +} + diff --git a/test/no_using_breaks_adl_fail.cpp b/test/no_using_breaks_adl_fail.cpp index 719c517b..25d28ec3 100644 --- a/test/no_using_breaks_adl_fail.cpp +++ b/test/no_using_breaks_adl_fail.cpp @@ -31,6 +31,6 @@ int cpp_main( int, char *[] ) { - return ::test(); + return boost_function_scope_using_declaration_breaks_adl::test(); } diff --git a/test/no_using_breaks_adl_pass.cpp b/test/no_using_breaks_adl_pass.cpp index 23110b65..a6c28905 100644 --- a/test/no_using_breaks_adl_pass.cpp +++ b/test/no_using_breaks_adl_pass.cpp @@ -26,11 +26,11 @@ #ifndef BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL #include "boost_no_using_breaks_adl.cxx" #else -namespace = empty_boost; +namespace boost_function_scope_using_declaration_breaks_adl = empty_boost; #endif int cpp_main( int, char *[] ) { - return ::test(); + return boost_function_scope_using_declaration_breaks_adl::test(); }