]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/20_util/enable_shared_from_this/members/assign.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 20_util / enable_shared_from_this / members / assign.cc
index 3181fdbc95779657393a5580f2d1d9baff4e5696..92344a5277bb699e19329a6a86ab8d14db826b50 100644 (file)
@@ -1,6 +1,7 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do run { target c++11 } }
+// { dg-require-effective-target hosted }
 
-// Copyright (C) 2013-2016 Free Software Foundation, Inc.
+// Copyright (C) 2013-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
@@ -24,7 +25,6 @@ struct X : public std::enable_shared_from_this<X> { };
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   auto x1 = std::make_shared<X>(), x2 = std::make_shared<X>();
   *x1 = *x2;
   VERIFY( x1->shared_from_this() != x2->shared_from_this() );