]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/optional/test/optional_test_maybe_uninitialized_warning.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / optional / test / optional_test_maybe_uninitialized_warning.cpp
1 // Copyright (C) 2017 Andrzej Krzemienski.
2 //
3 // Use, modification, and distribution is subject to the Boost Software
4 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
6 //
7 // See http://www.boost.org/lib/optional for documentation.
8 //
9 // You are welcome to contact the author at:
10 // akrzemi1@gmail.com
11
12 #include "boost/optional/optional.hpp"
13
14 #ifdef __BORLANDC__
15 #pragma hdrstop
16 #endif
17
18 boost::optional<int> getitem();
19
20 int main(int argc, const char *[])
21 {
22 boost::optional<int> a = getitem();
23 boost::optional<int> b;
24
25 if (argc > 0)
26 b = argc;
27
28 if (a == b)
29 return 1;
30
31 return 0;
32 }