From 483eb2f56657e8e7f419ab1a4fab8dce9ade8609 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 20:24:20 +0200 Subject: Adding upstream version 14.2.21. Signed-off-by: Daniel Baumann --- src/boost/libs/local_function/test/ten_void.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/boost/libs/local_function/test/ten_void.cpp (limited to 'src/boost/libs/local_function/test/ten_void.cpp') diff --git a/src/boost/libs/local_function/test/ten_void.cpp b/src/boost/libs/local_function/test/ten_void.cpp new file mode 100644 index 00000000..99bf1bfd --- /dev/null +++ b/src/boost/libs/local_function/test/ten_void.cpp @@ -0,0 +1,21 @@ + +// Copyright (C) 2009-2012 Lorenzo Caminiti +// Distributed under the Boost Software License, Version 1.0 +// (see accompanying file LICENSE_1_0.txt or a copy at +// http://www.boost.org/LICENSE_1_0.txt) +// Home at http://www.boost.org/libs/local_function + +#include +#include + +int main(void) { + //[ten_void + int BOOST_LOCAL_FUNCTION(void) { // No parameter. + return 10; + } BOOST_LOCAL_FUNCTION_NAME(ten) + + BOOST_TEST(ten() == 10); + //] + return boost::report_errors(); +} + -- cgit v1.2.3