-// { dg-options "-std=gnu++0x" }
+// { dg-do run { target c++11 } }
-// Copyright (C) 2005, 2006, 2007, 2008, 2009 Free Software Foundation
+// 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
void
test01()
{
- bool test __attribute__((unused)) = true;
-
const std::shared_ptr<A> p1;
VERIFY( p1.use_count() == 0 );
const std::shared_ptr<A> p2(p1);
void
test02()
{
- bool test __attribute__((unused)) = true;
-
std::shared_ptr<A> p1(new A);
std::shared_ptr<A> p2(p1);
p1.reset();
void
test03()
{
- bool test __attribute__((unused)) = true;
-
std::shared_ptr<A> p1(new A);
std::shared_ptr<A> p2(p1);
p2.reset(new B);