diff options
Diffstat (limited to 'libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/1.cc')
-rw-r--r-- | libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/1.cc | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/1.cc index 379a1379d51..86a02a6e408 100644 --- a/libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/1.cc +++ b/libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/1.cc @@ -29,7 +29,7 @@ void test01() using namespace std; typedef ostreambuf_iterator<wchar_t> iterator_type; - bool test = true; + bool test __attribute__((unused)) = true; // basic construction locale loc_c = locale::classic(); @@ -42,22 +42,16 @@ void test01() VERIFY( loc_de != loc_fr ); // cache the numpunct facets - const numpunct<wchar_t>& numpunct_c = use_facet<numpunct<wchar_t> >(loc_c); - const numpunct<wchar_t>& numpunct_de = use_facet<numpunct<wchar_t> >(loc_de); - const numpunct<wchar_t>& numpunct_hk = use_facet<numpunct<wchar_t> >(loc_hk); - + const numpunct<wchar_t>& numpunct_de = use_facet<numpunct<wchar_t> >(loc_de); + // sanity check the data is correct. const wstring empty; wstring result1; wstring result2; - char c; bool b1 = true; bool b0 = false; - long l1 = 2147483647; - long l2 = -2147483647; unsigned long ul1 = 1294967294; - unsigned long ul2 = 0; double d1 = 1.7976931348623157e+308; double d2 = 2.2250738585072014e-308; long double ld1 = 1.7976931348623157e+308; @@ -157,7 +151,6 @@ void test01() #ifdef _GLIBCXX_USE_LONG_LONG long long ll1 = 9223372036854775807LL; - long long ll2 = -9223372036854775807LL; oss.str(empty); oss.clear(); |