]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / tr1 / 2_general_utilities / shared_ptr / assign / auto_ptr.cc
index 47ed720889502691dea5f29298cffa29265fa536..fba4bb4a7d774916c320815001ac0a7b45d2fab6 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2005-2013 Free Software Foundation, Inc.
+// Copyright (C) 2005-2020 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
@@ -17,6 +17,8 @@
 
 // TR1 2.2.2 Template class shared_ptr [tr.util.smartptr.shared]
 
+// { dg-options "-std=c++98" }
+
 #include <tr1/memory>
 #include <testsuite_hooks.h>
 
@@ -60,7 +62,6 @@ int
 test01()
 {
   reset_count_struct __attribute__((unused)) reset;
-  bool test __attribute__((unused)) = true;
 
   std::tr1::shared_ptr<A> a(new A);
   std::auto_ptr<B> b(new B);
@@ -75,7 +76,7 @@ test01()
   return 0;
 }
 
-int 
+int
 main()
 {
   test01();