]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/optional/test/optional_test_maybe_uninitialized_warning.cpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / libs / optional / test / optional_test_maybe_uninitialized_warning.cpp
CommitLineData
b32b8144
FG
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
20effc67 14#ifdef BOOST_BORLANDC
b32b8144
FG
15#pragma hdrstop
16#endif
17
18boost::optional<int> getitem();
19
20int 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}