From e62e5742e0ae1254c3a562f00d34f92dc4def198 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Tue, 25 Sep 2001 18:53:33 +0000 Subject: [PATCH] Initial commit [SVN r11253] --- test/boost_no_void_returns.ipp | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 test/boost_no_void_returns.ipp diff --git a/test/boost_no_void_returns.ipp b/test/boost_no_void_returns.ipp new file mode 100644 index 00000000..f2c5fc56 --- /dev/null +++ b/test/boost_no_void_returns.ipp @@ -0,0 +1,31 @@ +// (C) Copyright John Maddock 2001. Permission to copy, use, modify, sell and +// distribute this software is granted provided this copyright notice appears +// in all copies. This software is provided "as is" without express or implied +// warranty, and with no claim as to its suitability for any purpose. + +// MACRO: BOOST_NO_VOID_RETURNS +// TITLE: no void returns +// DESCRIPTION: The compiler does not allow a void function +// to return the result of calling another void +// function. +// +// void f() {} +// void g() { return f(); } + + +namespace boost_no_void_returns{ + +void f() {} + +void g() { return f(); } + +int test() +{ + return 0; +} + +} + + + +