// { dg-do compile }
-// Copyright (C) 2002-2014 Free Software Foundation, Inc.
+// Copyright (C) 2002-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
// 20.4.5 Template class auto_ptr negative tests [lib.auto.ptr]
+// { dg-options "-std=c++98" }
+
#include <memory>
#include <testsuite_hooks.h>
{
std::auto_ptr<Base> ptr2;
ptr2 = new Base; // { dg-error "no match" }
- // { dg-error "candidate" "candidate note" { target *-*-* } 38 }
return 0;
}
test01();
return 0;
}
-// { dg-error "::auto_ptr|no known conversion" "" { target *-*-* } 136 }
-// { dg-error "note" "" { target *-*-* } 154 }
-// { dg-error "::auto_ptr|no known conversion" "" { target *-*-* } 264 }