forked from boostorg/bind
Added test for lookup problem found on Tru64/CXX6.5
[SVN r28485]
This commit is contained in:
@@ -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 ]
|
||||||
|
@@ -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 ]
|
||||||
|
40
test/bind_lookup_problem_test.cpp
Normal file
40
test/bind_lookup_problem_test.cpp
Normal 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;
|
||||||
|
}
|
Reference in New Issue
Block a user