]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/unittests/optional/observers/1.cc
gdb: Replace gdb::optional with std::optional
[thirdparty/binutils-gdb.git] / gdb / unittests / optional / observers / 1.cc
index c43e93f6d888701f2f9b1e7acf0df6a98d088d41..20f4176adf1dc9ad0021c41dbd0d9cb9c771e6a9 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2013-2018 Free Software Foundation, Inc.
+// 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
@@ -22,7 +22,8 @@ struct value_type
   int i;
 };
 
-void test()
+static void
+test ()
 {
   gdb::optional<value_type> o { value_type { 51 } };
   VERIFY( (*o).i == 51 );