mirror of git://gcc.gnu.org/git/gcc.git
weak_ptr_expired.cc: Modify to PASS instead of XFAIL.
* testsuite/tr1/2_general_utilities/shared_ptr/cons/ weak_ptr_expired.cc: Modify to PASS instead of XFAIL. From-SVN: r182661
This commit is contained in:
parent
737be29e4c
commit
7a37d6eaff
|
|
@ -1,3 +1,8 @@
|
||||||
|
2011-12-23 Jonathan Wakely <jwakely.gcc@gmail.com>
|
||||||
|
|
||||||
|
* testsuite/tr1/2_general_utilities/shared_ptr/cons/
|
||||||
|
weak_ptr_expired.cc: Modify to PASS instead of XFAIL.
|
||||||
|
|
||||||
2011-12-23 Kai Tietz <ktietz@redhat.com>
|
2011-12-23 Kai Tietz <ktietz@redhat.com>
|
||||||
|
|
||||||
* config/os/mingw32-w64/os_defines.h (__USE_MINGW_ANSI_STDIO): Define.
|
* config/os/mingw32-w64/os_defines.h (__USE_MINGW_ANSI_STDIO): Define.
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
// { dg-do run { xfail *-*-* } }
|
// { dg-do run }
|
||||||
// Copyright (C) 2005, 2009 Free Software Foundation
|
// Copyright (C) 2005, 2009, 2010, 2011 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
|
||||||
|
|
@ -29,7 +29,7 @@ struct A { };
|
||||||
int
|
int
|
||||||
test01()
|
test01()
|
||||||
{
|
{
|
||||||
bool test __attribute__((unused)) = true;
|
bool test = false;
|
||||||
|
|
||||||
std::tr1::shared_ptr<A> a1(new A);
|
std::tr1::shared_ptr<A> a1(new A);
|
||||||
std::tr1::weak_ptr<A> wa(a1);
|
std::tr1::weak_ptr<A> wa(a1);
|
||||||
|
|
@ -42,12 +42,9 @@ test01()
|
||||||
catch (const std::tr1::bad_weak_ptr&)
|
catch (const std::tr1::bad_weak_ptr&)
|
||||||
{
|
{
|
||||||
// Expected.
|
// Expected.
|
||||||
__throw_exception_again;
|
test = true;
|
||||||
}
|
|
||||||
catch (...)
|
|
||||||
{
|
|
||||||
// Failed.
|
|
||||||
}
|
}
|
||||||
|
VERIFY( test );
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue