diff options
Diffstat (limited to 'libstdc++-v3/testsuite/22_locale/time_put/put/char/6.cc')
-rw-r--r-- | libstdc++-v3/testsuite/22_locale/time_put/put/char/6.cc | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/char/6.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/char/6.cc index e0ea595f08d..53baf21afd4 100644 --- a/libstdc++-v3/testsuite/22_locale/time_put/put/char/6.cc +++ b/libstdc++-v3/testsuite/22_locale/time_put/put/char/6.cc @@ -30,12 +30,10 @@ void test06() typedef ostreambuf_iterator<char> iterator_type; typedef char_traits<char> traits; - bool test = true; + bool test __attribute__((unused)) = true; // create "C" time objects - tm time1 = { 0, 0, 12, 4, 3, 71 }; - const char* all = "%a %A %b %B %c %d %H %I %j %m %M %p %s %U " - "%w %W %x %X %y %Y %Z %%"; + tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 }; const char* date = "%A, the second of %B"; const char* date_ex = "%Ex"; @@ -49,12 +47,6 @@ void test06() VERIFY( loc_hk != loc_de ); VERIFY( loc_de != loc_fr ); - // cache the __timepunct facets, for quicker gdb inspection - const __timepunct<char>& time_c = use_facet<__timepunct<char> >(loc_c); - const __timepunct<char>& time_de = use_facet<__timepunct<char> >(loc_de); - const __timepunct<char>& time_hk = use_facet<__timepunct<char> >(loc_hk); - const __timepunct<char>& time_fr = use_facet<__timepunct<char> >(loc_fr); - // create an ostream-derived object, cache the time_put facet const string empty; ostringstream oss; |