1
0
forked from boostorg/bind

Added test for lookup problem found on Tru64/CXX6.5

[SVN r28485]
This commit is contained in:
Markus Schöpflin
2005-04-26 14:18:10 +00:00
parent 27d1cf539b
commit 0aa407e77d
3 changed files with 42 additions and 0 deletions

View File

@@ -27,6 +27,7 @@ DEPENDS all : bind ;
[ run bind_not_test.cpp ] [ run bind_not_test.cpp ]
[ run bind_rel_test.cpp ] [ run bind_rel_test.cpp ]
[ run bind_function_test.cpp ] [ run bind_function_test.cpp ]
[ run bind_lookup_problem_test.cpp ]
[ run mem_fn_test.cpp ] [ run mem_fn_test.cpp ]
[ run mem_fn_void_test.cpp ] [ run mem_fn_void_test.cpp ]
[ run mem_fn_derived_test.cpp ] [ run mem_fn_derived_test.cpp ]

View File

@@ -21,6 +21,7 @@ test-suite "bind"
[ run bind_not_test.cpp ] [ run bind_not_test.cpp ]
[ run bind_rel_test.cpp ] [ run bind_rel_test.cpp ]
[ run bind_function_test.cpp ] [ run bind_function_test.cpp ]
[ run bind_lookup_problem_test.cpp ]
[ run mem_fn_test.cpp ] [ run mem_fn_test.cpp ]
[ run mem_fn_void_test.cpp ] [ run mem_fn_void_test.cpp ]
[ run mem_fn_derived_test.cpp ] [ run mem_fn_derived_test.cpp ]

View File

@@ -0,0 +1,40 @@
//
// bind_lookup_problem_test.cpp
//
// Copyright (C) Markus Sch<63>pflin 2005.
//
// 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)
//
#include <boost/bind.hpp>
template<class T> void value();
void foo() { }
void foo(int) { }
void foo(int, int) { }
void foo(int, int, int) { }
void foo(int, int, int, int) { }
void foo(int, int, int, int, int) { }
void foo(int, int, int, int, int, int) { }
void foo(int, int, int, int, int, int, int) { }
void foo(int, int, int, int, int, int, int, int) { }
void foo(int, int, int, int, int, int, int, int, int) { }
int main()
{
boost::bind(foo);
boost::bind(foo, 0);
boost::bind(foo, 0, 0);
boost::bind(foo, 0, 0, 0);
boost::bind(foo, 0, 0, 0, 0);
boost::bind(foo, 0, 0, 0, 0, 0);
boost::bind(foo, 0, 0, 0, 0, 0, 0);
boost::bind(foo, 0, 0, 0, 0, 0, 0, 0);
boost::bind(foo, 0, 0, 0, 0, 0, 0, 0, 0);
boost::bind(foo, 0, 0, 0, 0, 0, 0, 0, 0, 0);
return 0;
}