From 0aa407e77d69fe7c430cbb3da974773b2040569d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Sch=C3=B6pflin?= Date: Tue, 26 Apr 2005 14:18:10 +0000 Subject: [PATCH] Added test for lookup problem found on Tru64/CXX6.5 [SVN r28485] --- test/Jamfile | 1 + test/Jamfile.v2 | 1 + test/bind_lookup_problem_test.cpp | 40 +++++++++++++++++++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 test/bind_lookup_problem_test.cpp diff --git a/test/Jamfile b/test/Jamfile index 269f2cc..69fe638 100644 --- a/test/Jamfile +++ b/test/Jamfile @@ -27,6 +27,7 @@ DEPENDS all : bind ; [ run bind_not_test.cpp ] [ run bind_rel_test.cpp ] [ run bind_function_test.cpp ] + [ run bind_lookup_problem_test.cpp ] [ run mem_fn_test.cpp ] [ run mem_fn_void_test.cpp ] [ run mem_fn_derived_test.cpp ] diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index e5d0592..ff1d2bb 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -21,6 +21,7 @@ test-suite "bind" [ run bind_not_test.cpp ] [ run bind_rel_test.cpp ] [ run bind_function_test.cpp ] + [ run bind_lookup_problem_test.cpp ] [ run mem_fn_test.cpp ] [ run mem_fn_void_test.cpp ] [ run mem_fn_derived_test.cpp ] diff --git a/test/bind_lookup_problem_test.cpp b/test/bind_lookup_problem_test.cpp new file mode 100644 index 0000000..315a5e6 --- /dev/null +++ b/test/bind_lookup_problem_test.cpp @@ -0,0 +1,40 @@ +// +// bind_lookup_problem_test.cpp +// +// Copyright (C) Markus Schö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 + +template 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; +}