diff options
author | Lancelot Six <lancelot.six@amd.com> | 2023-10-13 09:55:19 +0000 |
---|---|---|
committer | Lancelot Six <lancelot.six@amd.com> | 2023-11-21 11:52:35 +0000 |
commit | 42742fc5817a8f2e47c711880501073a9ad86cfc (patch) | |
tree | a8a3ceb7ef74871b4226955eff34fc9585ba54c3 /gdb/unittests/optional/observers/1.cc | |
parent | 6b09f1342cf2d8e2b13a0d634acc3bcf2852a73b (diff) | |
download | binutils-42742fc5817a8f2e47c711880501073a9ad86cfc.zip binutils-42742fc5817a8f2e47c711880501073a9ad86cfc.tar.gz binutils-42742fc5817a8f2e47c711880501073a9ad86cfc.tar.bz2 |
gdbsupport: remove gdb::optional
The previous patch migrated all the uses of gdb::optional to use
std::optional instead, so gdb::optional can be removed entirely
as well as the self-tests which came with it.
Change-Id: I96ecd67b850b01be10ef00eb85a78ac647d5adc7
Approved-By: Tom Tromey <tom@tromey.com>
Approved-By: Pedro Alves <pedro@palves.net>
Diffstat (limited to 'gdb/unittests/optional/observers/1.cc')
-rw-r--r-- | gdb/unittests/optional/observers/1.cc | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/gdb/unittests/optional/observers/1.cc b/gdb/unittests/optional/observers/1.cc deleted file mode 100644 index 20f4176..0000000 --- a/gdb/unittests/optional/observers/1.cc +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (C) 2013-2023 Free Software Foundation, Inc. -// -// This file is part of the GNU ISO C++ Library. This library is free -// software; you can redistribute it and/or modify it under the -// terms of the GNU General Public License as published by the -// Free Software Foundation; either version 3, or (at your option) -// any later version. - -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License along -// with this library; see the file COPYING3. If not see -// <http://www.gnu.org/licenses/>. - -namespace observers_1 { - -struct value_type -{ - int i; -}; - -static void -test () -{ - gdb::optional<value_type> o { value_type { 51 } }; - VERIFY( (*o).i == 51 ); -} - -} // namespace observers_1 |