]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/21_strings/basic_string/56166.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 21_strings / basic_string / 56166.cc
index 0c004294f6f49560339daa65a5a66e6ca16bb025..6d4ce569a2cfe1b3b9db8da6850f0393ec479bb2 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2016-2017 Free Software Foundation, Inc.
+// Copyright (C) 2016-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
@@ -87,7 +87,7 @@ int main()
       fail_after = i;
       f();
       break;
-    } catch (std::bad_alloc) {
+    } catch (const std::bad_alloc&) {
     }
   }
 }