fixed expected compiler failures

[SVN r8825]
This commit is contained in:
John Maddock
2001-01-31 11:35:01 +00:00
parent a9d7c53394
commit ed10188083
5 changed files with 16 additions and 27 deletions

View File

@ -8,7 +8,7 @@ Compiler Status: win32
<h1><img border border="0" src="../c++boost.gif" width="277" height="86"></h1>
<h1>Compiler Status: win32</h1>
<p><b>Run Date:</b> 26 Jan 2001 14:00 GMT</p>
<p><b>Run Date:</b> 28 Jan 2001 13:03 GMT</p>
<p><b>System Configuration:</b> Microsoft Windows 32bit</p>
<p>
<table border="1" cellspacing="0" cellpadding="5">
@ -79,10 +79,10 @@ Compiler Status: win32
<tr>
<td><a href="../libs/type_traits/transform_traits_test.cpp">libs/type_traits/transform_traits_test.cpp</a></td>
<td>run</td>
<td>Pass</td>
<td><font size="+3"><em>Pass</em></font></td>
<td><font color="#FF0000">Fail</font></td>
<td><font color="#FF0000">Fail</font></td>
<td><font color="#FF0000">Fail</font></td>
</tr>
<tr>
<td><a href="../libs/type_traits/trivial_destructor_example.cpp">libs/type_traits/trivial_destructor_example.cpp</a></td>

View File

@ -166,28 +166,6 @@ private:
public:
typedef no_b_type* type;
};
#ifdef __BORLANDC__
template <typename T, std::size_t N>
struct add_pointer<T (&)[N]>
{
typedef T* type;
};
template <typename T, std::size_t N>
struct add_pointer<T const (&)[N]>
{
typedef const T* type;
};
template <typename T, std::size_t N>
struct add_pointer<T volatile (&)[N]>
{
typedef volatile T* type;
};
template <typename T, std::size_t N>
struct add_pointer<T const volatile (&)[N]>
{
typedef const volatile T* type;
};
#endif
} // namespace boost

View File

@ -119,6 +119,7 @@ struct type_checker<T,T>
#define type_test(v, x) type_checker<v,x>::check(#v, #x, #x);
#define type_test3(v, x, z) type_checker<v,x,z>::check(#v, #x "," #z, #x "," #z);
#ifndef SHORT_TRANSFORM_TEST
#define transform_check(name, from_suffix, to_suffix)\
type_test(bool to_suffix, name<bool from_suffix>::type);\
type_test(char to_suffix, name<char from_suffix>::type);\
@ -136,6 +137,12 @@ struct type_checker<T,T>
type_test(double to_suffix, name<double from_suffix>::type);\
type_test(UDT to_suffix, name<UDT from_suffix>::type);\
type_test(enum1 to_suffix, name<enum1 from_suffix>::type);
#else
#define transform_check(name, from_suffix, to_suffix)\
type_test(int to_suffix, name<int from_suffix>::type);\
type_test(UDT to_suffix, name<UDT from_suffix>::type);\
type_test(enum1 to_suffix, name<enum1 from_suffix>::type);
#endif
#define boost_dummy_macro_param

View File

@ -2482,8 +2482,8 @@ checking type of ::boost::add_pointer<enum1 (&)[2]>::type...failed
typeid(enum1 *) was: enum1 *
typeid(::boost::add_pointer<enum1 (&)[2]>::type) was: enum1 * *
In template class type_checker<enum1 *,enum1 * *>
1799 tests completed, 422 failures found, 4 failures expected from this compiler.
Fail
1799 tests completed, 422 failures found, 422 failures expected from this compiler.
Pass
** Microsoft Visual C++
cl /Feboosttmp.exe /nologo /Zm400 /MDd /W3 /GR /GX /Zi /Od /GZ /I "../.." /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_CONSOLE" ../../libs/type_traits/transform_traits_test.cpp /link user32.lib

View File

@ -371,7 +371,11 @@ int main(int argc, char* argv[])
//
// define the number of failures expected for given compilers:
#ifdef __BORLANDC__
unsigned int expected_failures = 4; // cv-qualifiers
#ifdef SHORT_TRANSFORM_TEST
unsigned int expected_failures = 97; // cv-qualifiers
#else
unsigned int expected_failures = 422; // cv-qualifiers
#endif
#elif defined(__GNUC__)
unsigned int expected_failures = 1; // cv-qualified references
#else