mirror of git://gcc.gnu.org/git/gcc.git
weak_ptr_expired.cc: Modify to PASS instead of XFAIL.
* testsuite/20_util/shared_ptr/cons/weak_ptr_expired.cc: Modify to PASS instead of XFAIL. From-SVN: r183906
This commit is contained in:
parent
cee8c7a274
commit
e3aaef375c
|
@ -1,3 +1,8 @@
|
||||||
|
2012-02-05 Jonathan Wakely <jwakely.gcc@gmail.com>
|
||||||
|
|
||||||
|
* testsuite/20_util/shared_ptr/cons/weak_ptr_expired.cc: Modify to
|
||||||
|
PASS instead of XFAIL.
|
||||||
|
|
||||||
2012-02-05 Jeffrey Yasskin <jyasskin@gcc.gnu.org>
|
2012-02-05 Jeffrey Yasskin <jyasskin@gcc.gnu.org>
|
||||||
Paolo Carlini <paolo.carlini@oracle.com>
|
Paolo Carlini <paolo.carlini@oracle.com>
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
// { dg-options "-std=gnu++0x" }
|
// { dg-options "-std=gnu++0x" }
|
||||||
// { dg-do run { xfail *-*-* } }
|
|
||||||
|
|
||||||
// Copyright (C) 2005, 2006, 2007, 2009 Free Software Foundation
|
// Copyright (C) 2005, 2006, 2007, 2009, 2012 Free Software Foundation
|
||||||
//
|
//
|
||||||
// This file is part of the GNU ISO C++ Library. This library is free
|
// 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
|
// software; you can redistribute it and/or modify it under the
|
||||||
|
@ -31,7 +30,7 @@ struct A { };
|
||||||
int
|
int
|
||||||
test01()
|
test01()
|
||||||
{
|
{
|
||||||
bool test __attribute__((unused)) = true;
|
bool test = false;
|
||||||
|
|
||||||
std::shared_ptr<A> a1(new A);
|
std::shared_ptr<A> a1(new A);
|
||||||
std::weak_ptr<A> wa(a1);
|
std::weak_ptr<A> wa(a1);
|
||||||
|
@ -44,12 +43,9 @@ test01()
|
||||||
catch (const std::bad_weak_ptr&)
|
catch (const std::bad_weak_ptr&)
|
||||||
{
|
{
|
||||||
// Expected.
|
// Expected.
|
||||||
__throw_exception_again;
|
test = true;
|
||||||
}
|
|
||||||
catch (...)
|
|
||||||
{
|
|
||||||
// Failed.
|
|
||||||
}
|
}
|
||||||
|
VERIFY( test );
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue