gcc/libstdc++-v3/testsuite/20_util/unique_ptr
Paolo Carlini 3abeaf8f89 re PR libstdc++/42925 ([GB 99] Not possible to compare unique_ptr with 0)
2010-08-11  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/42925
	* include/bits/unique_ptr.h (operator==(const unique_ptr<>&,
	nullptr_t), operator==(nullptr_t, const unique_ptr<>&),
	operator!=(const unique_ptr<>&, nullptr_t),
	operator!=(nullptr_t, const unique_ptr<>&)): Add.
	* include/bits/shared_ptr_base.h (operator==(const __shared_ptr<>&,
	nullptr_t), operator==(nullptr_t, const __shared_ptr<>&),
	operator!=(const __shared_ptr<>&, nullptr_t),
	operator!=(nullptr_t, const __shared_ptr<>&)): Likewise.
	* include/bits/shared_ptr.h (operator==(const shared_ptr<>&,
	nullptr_t), operator==(nullptr_t, const shared_ptr<>&),
	operator!=(const shared_ptr<>&, nullptr_t),
	operator!=(nullptr_t, const shared_ptr<>&)): Likewise.
	* testsuite/20_util/unique_ptr/comparison/42925.cc: New.
	* testsuite/20_util/shared_ptr/comparison/42925.cc: Likewise.
	* testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: Adjust
	dg-error line numbers.

From-SVN: r163094
2010-08-11 08:49:47 +00:00
..
assign * decl2.c (mark_used): Adjust error for use of deleted function. 2010-06-29 20:51:13 -04:00
comparison re PR libstdc++/42925 ([GB 99] Not possible to compare unique_ptr with 0) 2010-08-11 08:49:47 +00:00
cons cons_overflow_neg.cc: Avoid -Wall warnings. 2010-08-10 10:08:56 +00:00
hash shared_ptr.h (hash<shared_ptr>): Add. 2010-06-11 16:20:24 +00:00
modifiers * decl2.c (mark_used): Adjust error for use of deleted function. 2010-06-29 20:51:13 -04:00
requirements unique_ptr (unique_ptr::pointer): Use deleter's pointer type if it exists. 2010-04-24 10:21:23 +01:00
specialized_algorithms