diff options
Diffstat (limited to 'libstdc++-v3/testsuite/tr1/2_general_utilities')
31 files changed, 1 insertions, 83 deletions
diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/enable_shared_from_this/not_shared.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/enable_shared_from_this/not_shared.cc index 0847a5125fd..7f36933b48e 100644 --- a/libstdc++-v3/testsuite/tr1/2_general_utilities/enable_shared_from_this/not_shared.cc +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/enable_shared_from_this/not_shared.cc @@ -27,8 +27,6 @@ struct X : public std::tr1::enable_shared_from_this<X> int test01() { - bool test __attribute__((unused)) = true; - X x; try diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/enable_shared_from_this/not_shared2.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/enable_shared_from_this/not_shared2.cc index be7ae4fdba1..c55a5da623d 100644 --- a/libstdc++-v3/testsuite/tr1/2_general_utilities/enable_shared_from_this/not_shared2.cc +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/enable_shared_from_this/not_shared2.cc @@ -27,8 +27,6 @@ struct X : public std::tr1::enable_shared_from_this<X> int test01() { - bool test __attribute__((unused)) = true; - std::tr1::shared_ptr<X> p(new X); X x(*p); // copy of shared object should not be shared diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/enable_shared_from_this/not_shared3.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/enable_shared_from_this/not_shared3.cc index c137197ea63..d94f7ddb270 100644 --- a/libstdc++-v3/testsuite/tr1/2_general_utilities/enable_shared_from_this/not_shared3.cc +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/enable_shared_from_this/not_shared3.cc @@ -27,8 +27,6 @@ struct X : public std::tr1::enable_shared_from_this<X> int test01() { - bool test __attribute__((unused)) = true; - std::tr1::shared_ptr<X> p(new X); X x; diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/enable_shared_from_this/shared.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/enable_shared_from_this/shared.cc index 74944191fd0..b92efb0c4ac 100644 --- a/libstdc++-v3/testsuite/tr1/2_general_utilities/enable_shared_from_this/shared.cc +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/enable_shared_from_this/shared.cc @@ -27,8 +27,6 @@ struct X : public std::tr1::enable_shared_from_this<X> int test01() { - bool test __attribute__((unused)) = true; - std::tr1::shared_ptr<X> p(new X); std::tr1::shared_ptr<X> q = p->shared_from_this(); VERIFY( p == q ); diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/enable_shared_from_this/still_shared.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/enable_shared_from_this/still_shared.cc index 52ba876833d..5710d82897d 100644 --- a/libstdc++-v3/testsuite/tr1/2_general_utilities/enable_shared_from_this/still_shared.cc +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/enable_shared_from_this/still_shared.cc @@ -27,7 +27,7 @@ struct X : public std::tr1::enable_shared_from_this<X> int test01() { - bool test __attribute__((unused)) = true; + bool test = true; std::tr1::shared_ptr<X> p(new X); diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/assign.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/assign.cc index 7b5e99a6d23..c7c4055a809 100644 --- a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/assign.cc +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/assign.cc @@ -47,7 +47,6 @@ void test01() { reset_count_struct __attribute__((unused)) reset; - bool test __attribute__((unused)) = true; std::tr1::shared_ptr<A> a; diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr.cc index 6d607b438e0..fe2f56f6578 100644 --- a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr.cc +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr.cc @@ -62,7 +62,6 @@ int test01() { reset_count_struct __attribute__((unused)) reset; - bool test __attribute__((unused)) = true; std::tr1::shared_ptr<A> a(new A); std::auto_ptr<B> b(new B); diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_neg.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_neg.cc index 6f9c0323b6f..08592fb8bfe 100644 --- a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_neg.cc +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_neg.cc @@ -33,8 +33,6 @@ struct B { }; int test01() { - bool test __attribute__((unused)) = true; - std::tr1::shared_ptr<A> a; std::auto_ptr<B> b; a = b; // { dg-error "here" } diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_rvalue_neg.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_rvalue_neg.cc index 01178a8b9ee..23d487b03a9 100644 --- a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_rvalue_neg.cc +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_rvalue_neg.cc @@ -33,8 +33,6 @@ std::auto_ptr<A> source() { return std::auto_ptr<A>(); } int test01() { - bool test __attribute__((unused)) = true; - std::tr1::shared_ptr<A> a; a = source(); // { dg-error "" } diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/shared_ptr.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/shared_ptr.cc index 9c3b30f17e5..31d690756cf 100644 --- a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/shared_ptr.cc +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/shared_ptr.cc @@ -60,7 +60,6 @@ void test01() { reset_count_struct __attribute__((unused)) reset; - bool test __attribute__((unused)) = true; std::tr1::shared_ptr<A> a; diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/shared_ptr_neg.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/shared_ptr_neg.cc index a41a806e9a9..fd7bdedb666 100644 --- a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/shared_ptr_neg.cc +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/shared_ptr_neg.cc @@ -31,8 +31,6 @@ struct B { }; int test01() { - bool test __attribute__((unused)) = true; - std::tr1::shared_ptr<A> a; std::tr1::shared_ptr<B> b; a = b; // { dg-error "here" } diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr.cc index 31a6cae6044..3d1b7e01cf1 100644 --- a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr.cc +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr.cc @@ -30,8 +30,6 @@ struct A { }; int test01() { - bool test __attribute__((unused)) = true; - std::auto_ptr<A> a(new A); std::tr1::shared_ptr<A> a2(a); VERIFY( a.get() == 0 ); diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr_neg.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr_neg.cc index d5ab66b1389..7d83d7a5e37 100644 --- a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr_neg.cc +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr_neg.cc @@ -32,8 +32,6 @@ struct A { }; int test01() { - bool test __attribute__((unused)) = true; - const std::auto_ptr<A> a; std::tr1::shared_ptr<A> p(a); // { dg-error "no match" } diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/copy.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/copy.cc index f4e5787cdbf..dbb5ad0aaba 100644 --- a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/copy.cc +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/copy.cc @@ -59,7 +59,6 @@ struct reset_count_struct int test01() { reset_count_struct __attribute__((unused)) reset; - bool test __attribute__((unused)) = true; std::tr1::shared_ptr<A> a1; std::tr1::shared_ptr<A> a2(a1); @@ -76,7 +75,6 @@ int test02() { reset_count_struct __attribute__((unused)) reset; - bool test __attribute__((unused)) = true; std::tr1::shared_ptr<A> a1(new A); std::tr1::shared_ptr<A> a2(a1); @@ -93,7 +91,6 @@ int test03() { reset_count_struct __attribute__((unused)) reset; - bool test __attribute__((unused)) = true; std::tr1::shared_ptr<B> b(new B); std::tr1::shared_ptr<A> a(b); @@ -110,7 +107,6 @@ int test04() { reset_count_struct __attribute__((unused)) reset; - bool test __attribute__((unused)) = true; std::tr1::shared_ptr<B> b(new B, &deleter); std::tr1::shared_ptr<A> a(b); diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/default.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/default.cc index 3bf350552b1..cddb17517ba 100644 --- a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/default.cc +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/default.cc @@ -28,8 +28,6 @@ struct A { }; int test01() { - bool test __attribute__((unused)) = true; - std::tr1::shared_ptr<A> a; VERIFY( a.get() == 0 ); diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/pointer.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/pointer.cc index 91852370e79..de8c0d853f7 100644 --- a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/pointer.cc +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/pointer.cc @@ -31,8 +31,6 @@ struct B : A { }; int test01() { - bool test __attribute__((unused)) = true; - A * const a = 0; std::tr1::shared_ptr<A> p(a); VERIFY( p.get() == 0 ); @@ -44,8 +42,6 @@ test01() int test02() { - bool test __attribute__((unused)) = true; - A * const a = new A; std::tr1::shared_ptr<A> p(a); VERIFY( p.get() == a ); @@ -58,8 +54,6 @@ test02() int test03() { - bool test __attribute__((unused)) = true; - B * const b = new B; std::tr1::shared_ptr<A> p(b); VERIFY( p.get() == b ); diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/weak_ptr.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/weak_ptr.cc index 7a1a7bc84b5..d558a603dd7 100644 --- a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/weak_ptr.cc +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/weak_ptr.cc @@ -28,8 +28,6 @@ struct A { }; int test01() { - bool test __attribute__((unused)) = true; - A * const a = new A; std::tr1::shared_ptr<A> a1(a); std::tr1::weak_ptr<A> wa(a1); diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/dest/dest.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/dest/dest.cc index 26697336c0d..7774a49326d 100644 --- a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/dest/dest.cc +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/dest/dest.cc @@ -67,7 +67,6 @@ int test01() { reset_count_struct __attribute__((unused)) reset; - bool test __attribute__((unused)) = true; { std::tr1::shared_ptr<A> a; @@ -86,7 +85,6 @@ int test02() { reset_count_struct __attribute__((unused)) reset; - bool test __attribute__((unused)) = true; std::tr1::shared_ptr<A> a; { @@ -106,7 +104,6 @@ int test03() { reset_count_struct __attribute__((unused)) reset; - bool test __attribute__((unused)) = true; { std::tr1::shared_ptr<A> a1(new B); diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/misc/24595.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/misc/24595.cc index dd1582ee405..c005c19753a 100644 --- a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/misc/24595.cc +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/misc/24595.cc @@ -25,8 +25,6 @@ using std::tr1::get_deleter; // libstdc++/24595 void test01() { - bool test __attribute__((unused)) = true; - std::tr1::shared_ptr<int> sp; VERIFY( !get_deleter<void(*)(int*)>(sp) ); } diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/misc/io.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/misc/io.cc index b2003d9cb0e..81be328d335 100644 --- a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/misc/io.cc +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/misc/io.cc @@ -29,8 +29,6 @@ struct A { }; int test01() { - bool test __attribute__((unused)) = true; - std::tr1::shared_ptr<A> p(new A); std::ostringstream buf; buf << p; diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/misc/swap.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/misc/swap.cc index 8d4734bce5b..51501593cb6 100644 --- a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/misc/swap.cc +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/misc/swap.cc @@ -28,8 +28,6 @@ struct A { }; int test01() { - bool test __attribute__((unused)) = true; - A * const a1 = new A; A * const a2 = new A; std::tr1::shared_ptr<A> p1(a1); diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/modifiers/reset.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/modifiers/reset.cc index 9127a37f72c..5ce19e86b8e 100644 --- a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/modifiers/reset.cc +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/modifiers/reset.cc @@ -35,8 +35,6 @@ long D::delete_count = 0; int test01() { - bool test __attribute__((unused)) = true; - A * const a = new A; std::tr1::shared_ptr<A> p1(a); std::tr1::shared_ptr<A> p2(p1); @@ -50,8 +48,6 @@ test01() int test02() { - bool test __attribute__((unused)) = true; - A * const a = new A; B * const b = new B; std::tr1::shared_ptr<A> p1(a); @@ -66,8 +62,6 @@ test02() int test03() { - bool test __attribute__((unused)) = true; - { std::tr1::shared_ptr<A> p1; p1.reset(new B, D()); diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/modifiers/reset_neg.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/modifiers/reset_neg.cc index c1c531ca235..09073d91cd4 100644 --- a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/modifiers/reset_neg.cc +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/modifiers/reset_neg.cc @@ -30,8 +30,6 @@ struct A { }; int test01() { - bool test __attribute__((unused)) = true; - const std::tr1::shared_ptr<A> p1(new A); p1.reset(); // { dg-error "no match" } diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/modifiers/swap.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/modifiers/swap.cc index 411ba711615..8aceb964ea3 100644 --- a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/modifiers/swap.cc +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/modifiers/swap.cc @@ -28,8 +28,6 @@ struct A { }; int test01() { - bool test __attribute__((unused)) = true; - A * const a1 = new A; A * const a2 = new A; std::tr1::shared_ptr<A> p1(a1); diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/modifiers/swap_neg.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/modifiers/swap_neg.cc index 751729bc6b6..649d881a2ea 100644 --- a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/modifiers/swap_neg.cc +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/modifiers/swap_neg.cc @@ -30,8 +30,6 @@ struct A { }; int test01() { - bool test __attribute__((unused)) = true; - const std::tr1::shared_ptr<A> p1(new A); std::tr1::shared_ptr<A> p2(new A); p1.swap(p2); // { dg-error "discards qualifiers" } diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/observers/bool_conv.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/observers/bool_conv.cc index f89970ae760..efc210c7f0b 100644 --- a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/observers/bool_conv.cc +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/observers/bool_conv.cc @@ -28,8 +28,6 @@ struct A { }; int test01() { - bool test __attribute__((unused)) = true; - const std::tr1::shared_ptr<A> p1; VERIFY( bool(p1) == false ); const std::tr1::shared_ptr<A> p2(p1); @@ -41,8 +39,6 @@ test01() int test02() { - bool test __attribute__((unused)) = true; - std::tr1::shared_ptr<A> p1(new A); VERIFY( p1 ); std::tr1::shared_ptr<A> p2(p1); @@ -57,8 +53,6 @@ test02() int test03() { - bool test __attribute__((unused)) = true; - std::tr1::shared_ptr<A> p1(new A); std::tr1::shared_ptr<A> p2(p1); p2.reset(new A); diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/observers/get.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/observers/get.cc index 558cc62fc30..fe82c2926eb 100644 --- a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/observers/get.cc +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/observers/get.cc @@ -32,8 +32,6 @@ struct A int test01() { - bool test __attribute__((unused)) = true; - A * const a = new A; const std::tr1::shared_ptr<A> p(a); VERIFY( p.get() == a ); @@ -45,8 +43,6 @@ test01() int test02() { - bool test __attribute__((unused)) = true; - A * const a = new A; const std::tr1::shared_ptr<A> p(a); VERIFY( &*p == a ); @@ -59,8 +55,6 @@ test02() int test03() { - bool test __attribute__((unused)) = true; - A * const a = new A; const std::tr1::shared_ptr<A> p(a); VERIFY( &p->i == &a->i ); diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/observers/unique.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/observers/unique.cc index 3a630d8b9c4..51189d05541 100644 --- a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/observers/unique.cc +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/observers/unique.cc @@ -28,8 +28,6 @@ struct A { }; int test01() { - bool test __attribute__((unused)) = true; - const std::tr1::shared_ptr<A> p1; VERIFY( !p1.unique() ); const std::tr1::shared_ptr<A> p2(p1); @@ -41,8 +39,6 @@ test01() int test02() { - bool test __attribute__((unused)) = true; - std::tr1::shared_ptr<A> p1(new A); VERIFY( p1.unique() ); std::tr1::shared_ptr<A> p2(p1); @@ -57,8 +53,6 @@ test02() int test03() { - bool test __attribute__((unused)) = true; - std::tr1::shared_ptr<A> p1(new A); std::tr1::shared_ptr<A> p2(p1); p2.reset(new A); diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/observers/use_count.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/observers/use_count.cc index 228b2dd35e9..79e62f65499 100644 --- a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/observers/use_count.cc +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/observers/use_count.cc @@ -29,8 +29,6 @@ struct B : A { }; int test01() { - bool test __attribute__((unused)) = true; - const std::tr1::shared_ptr<A> p1; VERIFY( p1.use_count() == 0 ); const std::tr1::shared_ptr<A> p2(p1); @@ -42,8 +40,6 @@ test01() int test02() { - bool test __attribute__((unused)) = true; - std::tr1::shared_ptr<A> p1(new A); std::tr1::shared_ptr<A> p2(p1); p1.reset(); @@ -56,8 +52,6 @@ test02() int test03() { - bool test __attribute__((unused)) = true; - std::tr1::shared_ptr<A> p1(new A); std::tr1::shared_ptr<A> p2(p1); p2.reset(new B); diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/thread/default_weaktoshared.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/thread/default_weaktoshared.cc index 016395ae934..b5ea9e52cde 100644 --- a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/thread/default_weaktoshared.cc +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/thread/default_weaktoshared.cc @@ -143,7 +143,6 @@ void* thread_hammer(void* opaque_weak) int test01() { - bool test __attribute__((unused)) = true; sp_vector_t obj_pool(POOL_SIZE); for(sp_vector_t::iterator cur = obj_pool.begin(); cur != obj_pool.end(); ++cur) diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/thread/mutex_weaktoshared.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/thread/mutex_weaktoshared.cc index c075e503c0e..53bf2a72d99 100644 --- a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/thread/mutex_weaktoshared.cc +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/thread/mutex_weaktoshared.cc @@ -145,7 +145,6 @@ void* thread_hammer(void* opaque_weak) int test01() { - bool test __attribute__((unused)) = true; sp_vector_t obj_pool(POOL_SIZE); for(sp_vector_t::iterator cur = obj_pool.begin(); cur != obj_pool.end(); ++cur) |