]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/parameter/test/literate/fine-grained-name-control0.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / parameter / test / literate / fine-grained-name-control0.cpp
index fc7b82f34427edf142fc937f804a755b5ad61a84..688658adc2e7fbbbf163360f5f02a11ab263f795 100644 (file)
@@ -1,15 +1,21 @@
 
 #include <boost/parameter.hpp>
+
 BOOST_PARAMETER_NAME((pass_foo, keywords) foo)
 
 BOOST_PARAMETER_FUNCTION(
-  (int), f,
-  keywords, (required (foo, *)))
+    (int), f, keywords, (required (foo, *))
+)
 {
     return foo + 1;
 }
 
-int x = f(pass_foo = 41);
+#include <boost/core/lightweight_test.hpp>
+
 int main()
-{}
+{
+    int x = f(pass_foo = 41);
+    BOOST_TEST_EQ(x, 42);
+    return boost::report_errors();
+}