]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/io/test/nullstream_test.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / io / test / nullstream_test.cpp
diff --git a/ceph/src/boost/libs/io/test/nullstream_test.cpp b/ceph/src/boost/libs/io/test/nullstream_test.cpp
new file mode 100644 (file)
index 0000000..8b49335
--- /dev/null
@@ -0,0 +1,28 @@
+/*
+Copyright 2021 Glen Joseph Fernandes
+(glenjofe@gmail.com)
+
+Distributed under the Boost Software License, Version 1.0.
+(http://www.boost.org/LICENSE_1_0.txt)
+*/
+#include <boost/io/nullstream.hpp>
+#include <boost/core/lightweight_test.hpp>
+
+int main()
+{
+    {
+        boost::io::onullstream s;
+        s << "abc";
+        s << 100;
+        s << std::endl;
+        BOOST_TEST(s);
+    }
+    {
+        boost::io::wonullstream s;
+        s << L"abc";
+        s << 100;
+        s << std::endl;
+        BOOST_TEST(s);
+    }
+    return boost::report_errors();
+}