gcc/libstdc++-v3/testsuite
Jonathan Wakely 156b60e0b9 re PR libstdc++/59656 (weak_ptr::lock function crashes when compiling with -fno-exceptions flag)
2014-01-28  Jonathan Wakely  <jwakely@redhat.com>
	    Kyle Lippincott  <spectral@google.com>

	PR libstdc++/59656
	* include/bits/shared_ptr.h (shared_ptr): Add new non-throwing
	constructor and grant friendship to weak_ptr.
	(weak_ptr::lock()): Use new constructor.
	* include/bits/shared_ptr_base.h
	(_Sp_counted_base::_M_add_ref_lock_nothrow()): Declare new function
	and define specializations.
	(__shared_count): Add new non-throwing constructor.
	(__shared_ptr): Add new non-throwing constructor and grant friendship
	to __weak_ptr.
	(__weak_ptr::lock()): Use new constructor.
	* testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust dg-error.
	* testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise.

Co-Authored-By: Kyle Lippincott <spectral@google.com>

From-SVN: r207180
2014-01-28 10:23:27 +00:00
..
17_intro Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
18_support Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
19_diagnostics Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
20_util re PR libstdc++/59656 (weak_ptr::lock function crashes when compiling with -fno-exceptions flag) 2014-01-28 10:23:27 +00:00
21_strings Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
22_locale Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
23_containers stl_map.h: Remove anachronistic comment. 2014-01-26 11:22:58 +00:00
24_iterators Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
25_algorithms Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
26_numerics Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
27_io Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
28_regex regex.tcc: Remove incorrect `nosubs` handling. 2014-01-21 19:54:03 +00:00
29_atomics Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
30_threads Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
abi Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
backward Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
config Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
data make_graph_test_infos.xml: Edit. 2011-08-15 00:51:06 +00:00
decimal Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
experimental re PR libstdc++/59531 (string_view overrun in copy operation) 2014-01-24 20:15:00 +00:00
ext Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
lib Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
libstdc++-abi Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
libstdc++-dg Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
libstdc++-prettyprinters Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
performance Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
tr1 Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
tr2 Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
util PR libstdc++/58764 (again) 2014-01-22 23:50:58 +00:00
Makefile.am Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
Makefile.in Makefile.am (check_DEJAGNU_normal_targets): Add 10. 2013-11-22 21:38:59 +01:00