forked from boostorg/config
Fixed broken test cases, and added two new ones that were previously missing from cvs
[SVN r21509]
This commit is contained in:
36
test/no_array_type_spec_fail.cpp
Normal file
36
test/no_array_type_spec_fail.cpp
Normal file
@ -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 <boost/config.hpp>
|
||||
#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();
|
||||
}
|
||||
|
36
test/no_array_type_spec_pass.cpp
Normal file
36
test/no_array_type_spec_pass.cpp
Normal file
@ -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 <boost/config.hpp>
|
||||
#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();
|
||||
}
|
||||
|
@ -31,6 +31,6 @@
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return ::test();
|
||||
return boost_function_scope_using_declaration_breaks_adl::test();
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user