]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/leaf/test/_compile-fail-diagnostic_info.cpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / libs / leaf / test / _compile-fail-diagnostic_info.cpp
diff --git a/ceph/src/boost/libs/leaf/test/_compile-fail-diagnostic_info.cpp b/ceph/src/boost/libs/leaf/test/_compile-fail-diagnostic_info.cpp
new file mode 100644 (file)
index 0000000..cbe6e58
--- /dev/null
@@ -0,0 +1,12 @@
+// Copyright (c) 2018-2020 Emil Dotchevski and Reverge Studios, Inc.
+
+// Distributed under 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 <boost/leaf/handle_errors.hpp>
+
+namespace leaf = boost::leaf;
+
+leaf::diagnostic_info f();
+leaf::diagnostic_info a = f();
+leaf::diagnostic_info b = a;