summaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/decimal/compound-assignment-memfunc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/testsuite/decimal/compound-assignment-memfunc.cc')
-rw-r--r--libstdc++-v3/testsuite/decimal/compound-assignment-memfunc.cc14
1 files changed, 13 insertions, 1 deletions
diff --git a/libstdc++-v3/testsuite/decimal/compound-assignment-memfunc.cc b/libstdc++-v3/testsuite/decimal/compound-assignment-memfunc.cc
index c216faa8095..617769247d4 100644
--- a/libstdc++-v3/testsuite/decimal/compound-assignment-memfunc.cc
+++ b/libstdc++-v3/testsuite/decimal/compound-assignment-memfunc.cc
@@ -1,4 +1,4 @@
-// Copyright (C) 2009 Free Software Foundation, Inc.
+// Copyright (C) 2009-2012 Free Software Foundation, Inc.
//
// 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
@@ -41,6 +41,7 @@ unsigned long long ull = 50;
void
compound_assignment_add_32 (void)
{
+ bool test __attribute__((unused)) = true;
decimal32 a (1000), b;
b = a; b.operator+=(d32); VERIFY (b == 1005);
@@ -57,6 +58,7 @@ compound_assignment_add_32 (void)
void
compound_assignment_subtract_32 (void)
{
+ bool test __attribute__((unused)) = true;
decimal32 a (1000), b;
b = a; b.operator-=(d32); VERIFY (b == 995);
@@ -73,6 +75,7 @@ compound_assignment_subtract_32 (void)
void
compound_assignment_multiply_32 (void)
{
+ bool test __attribute__((unused)) = true;
decimal32 a (1000), b;
b = a; b.operator*=(d32); VERIFY (b == 5000);
@@ -89,6 +92,7 @@ compound_assignment_multiply_32 (void)
void
compound_assignment_divide_32 (void)
{
+ bool test __attribute__((unused)) = true;
decimal32 a (1000), b;
b = a; b.operator/=(d32); VERIFY (b == 200);
@@ -105,6 +109,7 @@ compound_assignment_divide_32 (void)
void
compound_assignment_add_64 (void)
{
+ bool test __attribute__((unused)) = true;
decimal64 a (1000), b;
b = a; b.operator+=(d32); VERIFY (b == 1005);
@@ -121,6 +126,7 @@ compound_assignment_add_64 (void)
void
compound_assignment_subtract_64 (void)
{
+ bool test __attribute__((unused)) = true;
decimal64 a (1000), b;
b = a; b.operator-=(d32); VERIFY (b == 995);
@@ -137,6 +143,7 @@ compound_assignment_subtract_64 (void)
void
compound_assignment_multiply_64 (void)
{
+ bool test __attribute__((unused)) = true;
decimal64 a (1000), b;
b = a; b.operator*=(d32); VERIFY (b == 5000);
@@ -153,6 +160,7 @@ compound_assignment_multiply_64 (void)
void
compound_assignment_divide_64 (void)
{
+ bool test __attribute__((unused)) = true;
decimal64 a (1000), b;
b = a; b.operator/=(d32); VERIFY (b == 200);
@@ -169,6 +177,7 @@ compound_assignment_divide_64 (void)
void
compound_assignment_add_128 (void)
{
+ bool test __attribute__((unused)) = true;
decimal128 a (1000), b;
b = a; b.operator+=(d32); VERIFY (b == 1005);
@@ -185,6 +194,7 @@ compound_assignment_add_128 (void)
void
compound_assignment_subtract_128 (void)
{
+ bool test __attribute__((unused)) = true;
decimal128 a (1000), b;
b = a; b.operator-=(d32); VERIFY (b == 995);
@@ -201,6 +211,7 @@ compound_assignment_subtract_128 (void)
void
compound_assignment_multiply_128 (void)
{
+ bool test __attribute__((unused)) = true;
decimal128 a (1000), b;
b = a; b.operator*=(d32); VERIFY (b == 5000);
@@ -217,6 +228,7 @@ compound_assignment_multiply_128 (void)
void
compound_assignment_divide_128 (void)
{
+ bool test __attribute__((unused)) = true;
decimal128 a (1000), b;
b = a; b.operator/=(d32); VERIFY (b == 200);