]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/20_util/addressof/1.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 20_util / addressof / 1.cc
index 22446af62eb68d3c6987342ca86501edc39a4d43..e8197cbce40aba924bb842ceb01f9d381d235438 100644 (file)
@@ -1,8 +1,8 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do run { target c++11 } }
 
 // 2010-05-20  Paolo Carlini  <paolo.carlini@oracle.com>
 
-// Copyright (C) 2010-2014 Free Software Foundation, Inc.
+// Copyright (C) 2010-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
@@ -27,7 +27,6 @@ void f1(int) { }
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   using namespace __gnu_test;
   
   OverloadedAddress* ao1 = new OverloadedAddress();
@@ -41,6 +40,9 @@ void test01()
   VERIFY( std::addressof(o2) == ao2 );
 
   VERIFY( std::addressof(f1) == &f1 );
+
+  delete ao1;
+  delete ao2;
 }
 
 int main()