]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/ext/new_allocator/deallocate_local.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / ext / new_allocator / deallocate_local.cc
index ab5ae710025f836dc1ddf25be39ab5e175134b6a..ab6ae8170eeb79f3218a8dc532b0f560ebe7d125 100644 (file)
@@ -1,5 +1,5 @@
 //
-// Copyright (C) 2004-2013 Free Software Foundation, Inc.
+// Copyright (C) 2004-2024 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
@@ -27,6 +27,7 @@ typedef std::basic_string<char_t, traits_t, allocator_t> string_t;
 
 int main()
 {
+  __gnu_test::counter::scope s;
   {
     string_t s;
     s += "bayou bend";
@@ -34,5 +35,6 @@ int main()
 
   if (__gnu_test::counter::count() != 0)
     throw std::runtime_error("count not zero");
+
   return 0;
 }