diff options
Diffstat (limited to 'libstdc++-v3/testsuite/22_locale/num_get/get/char/1.cc')
-rw-r--r-- | libstdc++-v3/testsuite/22_locale/num_get/get/char/1.cc | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/libstdc++-v3/testsuite/22_locale/num_get/get/char/1.cc b/libstdc++-v3/testsuite/22_locale/num_get/get/char/1.cc index 190f9921aef..e42e7b4ce74 100644 --- a/libstdc++-v3/testsuite/22_locale/num_get/get/char/1.cc +++ b/libstdc++-v3/testsuite/22_locale/num_get/get/char/1.cc @@ -29,7 +29,7 @@ void test01() using namespace std; typedef istreambuf_iterator<char> iterator_type; - bool test = true; + bool test __attribute__((unused)) = true; // basic construction locale loc_c = locale::classic(); @@ -41,20 +41,11 @@ void test01() VERIFY( loc_hk != loc_de ); VERIFY( loc_de != loc_fr ); - // cache the numpunct facets - const numpunct<char>& numpunct_c = use_facet<numpunct<char> >(loc_c); - const numpunct<char>& numpunct_de = use_facet<numpunct<char> >(loc_de); - const numpunct<char>& numpunct_hk = use_facet<numpunct<char> >(loc_hk); - // sanity check the data is correct. const string empty; - char c; bool b1 = true; bool b0 = false; - long l1 = 2147483647; - long l2 = -2147483647; - long l; unsigned long ul1 = 1294967294; unsigned long ul2 = 0; unsigned long ul; @@ -62,7 +53,6 @@ void test01() double d2 = 3.15e-308; double d; long double ld1 = 6.630025e+4; - long double ld2 = 0.0; long double ld; void* v; const void* cv = &ul2; @@ -148,7 +138,6 @@ void test01() #ifdef _GLIBCXX_USE_LONG_LONG long long ll1 = 9223372036854775807LL; - long long ll2 = -9223372036854775807LL; long long ll; iss.str("9.223.372.036.854.775.807"); |