summaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/22_locale
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/testsuite/22_locale')
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/1.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/always_noconv/char/1.cc6
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/encoding/char/1.cc6
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/encoding/wchar_t/1.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/encoding/wchar_t/2.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/encoding/wchar_t/3.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/encoding/wchar_t/4.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/in/char/1.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/1.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/2.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/3.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/4.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/5.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/6.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/7.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/8.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/9.cc4
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/length/char/1.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/length/char/2.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/1.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/2.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/3.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/4.cc3
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/5.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/6.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/7.cc3
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/max_length/char/1.cc7
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/max_length/wchar_t/1.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/max_length/wchar_t/2.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/max_length/wchar_t/3.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/max_length/wchar_t/4.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/out/char/1.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/1.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/2.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/3.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/4.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/5.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/6.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/7.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/unicode/1.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/unicode/char.cc4
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/unicode/wchar_t.cc6
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/unshift/char/1.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/unshift/wchar_t/1.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/unshift/wchar_t/2.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/unshift/wchar_t/3.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/codecvt/unshift/wchar_t/4.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/collate/1.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/collate/compare/char/1.cc5
-rw-r--r--libstdc++-v3/testsuite/22_locale/collate/compare/char/2.cc7
-rw-r--r--libstdc++-v3/testsuite/22_locale/collate/compare/char/3.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/collate/compare/wchar_t/1.cc5
-rw-r--r--libstdc++-v3/testsuite/22_locale/collate/compare/wchar_t/2.cc7
-rw-r--r--libstdc++-v3/testsuite/22_locale/collate/compare/wchar_t/3.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/collate/hash/char/1.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/collate/hash/char/2.cc9
-rw-r--r--libstdc++-v3/testsuite/22_locale/collate/hash/wchar_t/1.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/collate/hash/wchar_t/2.cc9
-rw-r--r--libstdc++-v3/testsuite/22_locale/collate/transform/char/2.cc7
-rw-r--r--libstdc++-v3/testsuite/22_locale/collate/transform/char/3.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/collate/transform/wchar_t/2.cc7
-rw-r--r--libstdc++-v3/testsuite/22_locale/collate/transform/wchar_t/3.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/collate_byname/1.cc3
-rw-r--r--libstdc++-v3/testsuite/22_locale/ctype/1.cc11
-rw-r--r--libstdc++-v3/testsuite/22_locale/ctype/cons/char/1.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/ctype/is/char/1.cc8
-rw-r--r--libstdc++-v3/testsuite/22_locale/ctype/is/char/2.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/ctype/is/char/3.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/ctype/is/wchar_t/1.cc9
-rw-r--r--libstdc++-v3/testsuite/22_locale/ctype/is/wchar_t/2.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/ctype/narrow/char/1.cc6
-rw-r--r--libstdc++-v3/testsuite/22_locale/ctype/narrow/char/2.cc6
-rw-r--r--libstdc++-v3/testsuite/22_locale/ctype/narrow/wchar_t/1.cc6
-rw-r--r--libstdc++-v3/testsuite/22_locale/ctype/narrow/wchar_t/2.cc6
-rw-r--r--libstdc++-v3/testsuite/22_locale/ctype/narrow/wchar_t/3.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/ctype/scan/char/1.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/ctype/scan/wchar_t/1.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/ctype/to/char/1.cc10
-rw-r--r--libstdc++-v3/testsuite/22_locale/ctype/to/wchar_t/1.cc10
-rw-r--r--libstdc++-v3/testsuite/22_locale/ctype/widen/char/1.cc7
-rw-r--r--libstdc++-v3/testsuite/22_locale/ctype/widen/wchar_t/1.cc7
-rw-r--r--libstdc++-v3/testsuite/22_locale/ctype/widen/wchar_t/2.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/ctype/widen/wchar_t/3.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/facet/1.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/facet/2.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/global_templates/1.cc8
-rw-r--r--libstdc++-v3/testsuite/22_locale/locale/cons/2.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/locale/cons/4.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/locale/cons/5.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/locale/cons/6.cc6
-rw-r--r--libstdc++-v3/testsuite/22_locale/locale/cons/7.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/locale/cons/7222-c.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/locale/cons/7222-env.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/locale/cons/8.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/locale/global_locale_objects/1.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/locale/global_locale_objects/2.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/locale/global_locale_objects/3.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/locale/operations/1.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/locale/operations/2.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/messages/1.cc4
-rw-r--r--libstdc++-v3/testsuite/22_locale/messages/members/char/1.cc5
-rw-r--r--libstdc++-v3/testsuite/22_locale/messages/members/char/2.cc5
-rw-r--r--libstdc++-v3/testsuite/22_locale/messages/members/char/3.cc4
-rw-r--r--libstdc++-v3/testsuite/22_locale/messages_byname/1.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/money_get/1.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/money_get/get/char/1.cc8
-rw-r--r--libstdc++-v3/testsuite/22_locale/money_get/get/char/11528.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/money_get/get/char/2.cc8
-rw-r--r--libstdc++-v3/testsuite/22_locale/money_get/get/char/3.cc14
-rw-r--r--libstdc++-v3/testsuite/22_locale/money_get/get/char/4.cc14
-rw-r--r--libstdc++-v3/testsuite/22_locale/money_get/get/char/5.cc3
-rw-r--r--libstdc++-v3/testsuite/22_locale/money_get/get/char/6.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/money_get/get/char/7.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/money_get/get/char/8.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/1.cc8
-rw-r--r--libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/11528.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/2.cc8
-rw-r--r--libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/3.cc14
-rw-r--r--libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/4.cc14
-rw-r--r--libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/5.cc3
-rw-r--r--libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/6.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/7.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/8.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/money_put/1.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/money_put/put/char/1.cc8
-rw-r--r--libstdc++-v3/testsuite/22_locale/money_put/put/char/2.cc8
-rw-r--r--libstdc++-v3/testsuite/22_locale/money_put/put/char/3.cc14
-rw-r--r--libstdc++-v3/testsuite/22_locale/money_put/put/char/4.cc3
-rw-r--r--libstdc++-v3/testsuite/22_locale/money_put/put/char/5.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/money_put/put/char/6.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/money_put/put/wchar_t/1.cc8
-rw-r--r--libstdc++-v3/testsuite/22_locale/money_put/put/wchar_t/2.cc8
-rw-r--r--libstdc++-v3/testsuite/22_locale/money_put/put/wchar_t/3.cc14
-rw-r--r--libstdc++-v3/testsuite/22_locale/money_put/put/wchar_t/4.cc3
-rw-r--r--libstdc++-v3/testsuite/22_locale/money_put/put/wchar_t/5.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/money_put/put/wchar_t/6.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/moneypunct/1.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/moneypunct/2.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/moneypunct/members/char/1.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/moneypunct/members/char/2.cc3
-rw-r--r--libstdc++-v3/testsuite/22_locale/moneypunct/members/wchar_t/1.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/moneypunct/members/wchar_t/2.cc3
-rw-r--r--libstdc++-v3/testsuite/22_locale/moneypunct_byname/1.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/num_get/1.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/num_get/get/char/1.cc13
-rw-r--r--libstdc++-v3/testsuite/22_locale/num_get/get/char/2.cc16
-rw-r--r--libstdc++-v3/testsuite/22_locale/num_get/get/char/3.cc22
-rw-r--r--libstdc++-v3/testsuite/22_locale/num_get/get/char/4.cc3
-rw-r--r--libstdc++-v3/testsuite/22_locale/num_get/get/char/5.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/num_get/get/char/6.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/1.cc13
-rw-r--r--libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/2.cc16
-rw-r--r--libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/3.cc22
-rw-r--r--libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/4.cc3
-rw-r--r--libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/5.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/6.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/num_put/1.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/num_put/put/char/1.cc9
-rw-r--r--libstdc++-v3/testsuite/22_locale/num_put/put/char/2.cc15
-rw-r--r--libstdc++-v3/testsuite/22_locale/num_put/put/char/3.cc17
-rw-r--r--libstdc++-v3/testsuite/22_locale/num_put/put/char/4.cc4
-rw-r--r--libstdc++-v3/testsuite/22_locale/num_put/put/char/5.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/num_put/put/char/6.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/num_put/put/char/7.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/1.cc13
-rw-r--r--libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/2.cc15
-rw-r--r--libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/3.cc17
-rw-r--r--libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/4.cc4
-rw-r--r--libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/5.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/6.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/7.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/numpunct/1.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/numpunct/members/char/1.cc5
-rw-r--r--libstdc++-v3/testsuite/22_locale/numpunct/members/char/2.cc4
-rw-r--r--libstdc++-v3/testsuite/22_locale/numpunct/members/char/cache_1.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/numpunct/members/char/cache_2.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/numpunct/members/pod/1.cc4
-rw-r--r--libstdc++-v3/testsuite/22_locale/numpunct/members/pod/2.cc16
-rw-r--r--libstdc++-v3/testsuite/22_locale/numpunct/members/wchar_t/1.cc5
-rw-r--r--libstdc++-v3/testsuite/22_locale/numpunct/members/wchar_t/2.cc4
-rw-r--r--libstdc++-v3/testsuite/22_locale/numpunct/members/wchar_t/cache_1.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/numpunct/members/wchar_t/cache_2.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/numpunct_byname/1.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/numpunct_byname/2.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/1.cc4
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/date_order/char/1.cc11
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/date_order/wchar_t/1.cc8
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_date/char/1.cc14
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_date/char/2.cc15
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_date/char/3.cc5
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/1.cc14
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/2.cc15
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/3.cc5
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/1.cc10
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/2.cc10
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/3.cc4
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc10
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc10
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/3.cc4
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_time/char/1.cc14
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_time/char/2.cc10
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_time/char/3.cc5
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/1.cc14
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/2.cc10
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/3.cc5
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/1.cc14
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/2.cc10
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/3.cc5
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc14
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc10
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/3.cc5
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_year/char/1.cc14
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_year/char/3.cc5
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_year/wchar_t/1.cc14
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_year/wchar_t/3.cc5
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_put/1.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_put/put/char/1.cc14
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_put/put/char/10.cc3
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_put/put/char/2.cc14
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_put/put/char/3.cc14
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_put/put/char/4.cc14
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_put/put/char/5.cc12
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_put/put/char/6.cc12
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_put/put/char/7.cc12
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_put/put/char/8.cc12
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_put/put/char/9.cc2
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/1.cc14
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/10.cc3
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/2.cc14
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/3.cc14
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/4.cc14
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/5.cc12
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/6.cc12
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/7.cc12
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/8.cc12
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/9.cc2
240 files changed, 319 insertions, 1040 deletions
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/1.cc b/libstdc++-v3/testsuite/22_locale/codecvt/1.cc
index fa285752871..1c46d583c41 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/1.cc
@@ -29,7 +29,7 @@ void test01()
typedef std::codecvt<char, char, mbstate_t> test_type;
typedef std::locale::facet base_type;
const test_type& obj = std::use_facet<test_type>(std::locale());
- const base_type* base = &obj;
+ const base_type* base __attribute__((unused)) = &obj;
// Check for required typedefs
typedef test_type::intern_type intern_type;
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/always_noconv/char/1.cc b/libstdc++-v3/testsuite/22_locale/codecvt/always_noconv/char/1.cc
index 523322ece87..060b3683a52 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/always_noconv/char/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/always_noconv/char/1.cc
@@ -31,16 +31,12 @@ void test01()
typedef codecvt_base::result result;
typedef codecvt<char, char, mbstate_t> c_codecvt;
- bool test = true;
- const char* c_lit = "black pearl jasmine tea";
- const char* from_next;
+ bool test __attribute__((unused)) = true;
int size = 25;
char* c_arr = new char[size];
char* c_ref = new char[size];
- char* to_next;
locale loc = locale::classic();
- c_codecvt::state_type state;
const c_codecvt* cvt = &use_facet<c_codecvt>(loc);
// According to the resolution of DR19 (see also libstd++/9168), in
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc
index 6b57c89232f..13fc3838c73 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc
@@ -28,7 +28,7 @@
void test01()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
typedef codecvt<wchar_t, char, mbstate_t> w_codecvt;
locale loc;
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc b/libstdc++-v3/testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc
index 1a933f8fd3b..da377b57a45 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc
@@ -30,7 +30,7 @@
void test02()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
typedef codecvt<wchar_t, char, mbstate_t> w_codecvt;
locale loc = __gnu_test::try_named_locale("en_US.ISO-8859-1");
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc b/libstdc++-v3/testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc
index 9e98f53f88b..6830d301036 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc
@@ -30,7 +30,7 @@
void test03()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
typedef codecvt<wchar_t, char, mbstate_t> w_codecvt;
locale loc = __gnu_test::try_named_locale("en_US.ISO-8859-15");
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc b/libstdc++-v3/testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc
index 0929676270f..ecb00753175 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc
@@ -30,7 +30,7 @@
void test04()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
typedef codecvt<wchar_t, char, mbstate_t> w_codecvt;
locale loc = __gnu_test::try_named_locale("en_US.UTF-8");
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/encoding/char/1.cc b/libstdc++-v3/testsuite/22_locale/codecvt/encoding/char/1.cc
index 9ac07c5f044..76428bff180 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/encoding/char/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/encoding/char/1.cc
@@ -31,16 +31,12 @@ void test01()
typedef codecvt_base::result result;
typedef codecvt<char, char, mbstate_t> c_codecvt;
- bool test = true;
- const char* c_lit = "black pearl jasmine tea";
- const char* from_next;
+ bool test __attribute__((unused)) = true;
int size = 25;
char* c_arr = new char[size];
char* c_ref = new char[size];
- char* to_next;
locale loc = locale::classic();
- c_codecvt::state_type state;
const c_codecvt* cvt = &use_facet<c_codecvt>(loc);
// According to the resolution of DR19 (see also libstd++/9168), in
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/encoding/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/codecvt/encoding/wchar_t/1.cc
index d2fa938e892..1b86fb7a8dd 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/encoding/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/encoding/wchar_t/1.cc
@@ -29,7 +29,7 @@ void test01()
{
using namespace std;
typedef codecvt<wchar_t, char, mbstate_t> w_codecvt;
- bool test = true;
+ bool test __attribute__((unused)) = true;
locale loc_c = locale::classic();
const w_codecvt* cvt = &use_facet<w_codecvt>(loc_c);
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/encoding/wchar_t/2.cc b/libstdc++-v3/testsuite/22_locale/codecvt/encoding/wchar_t/2.cc
index c103b2e41c5..815cfd3ec28 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/encoding/wchar_t/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/encoding/wchar_t/2.cc
@@ -31,7 +31,7 @@ void test02()
{
using namespace std;
typedef codecvt<wchar_t, char, mbstate_t> w_codecvt;
- bool test = true;
+ bool test __attribute__((unused)) = true;
locale loc = __gnu_test::try_named_locale("en_US.ISO-8859-1");
locale::global(loc);
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/encoding/wchar_t/3.cc b/libstdc++-v3/testsuite/22_locale/codecvt/encoding/wchar_t/3.cc
index 9cc921c7bce..d456868b85d 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/encoding/wchar_t/3.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/encoding/wchar_t/3.cc
@@ -31,7 +31,7 @@ void test03()
{
using namespace std;
typedef codecvt<wchar_t, char, mbstate_t> w_codecvt;
- bool test = true;
+ bool test __attribute__((unused)) = true;
locale loc = __gnu_test::try_named_locale("en_US.ISO-8859-15");
locale::global(loc);
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/encoding/wchar_t/4.cc b/libstdc++-v3/testsuite/22_locale/codecvt/encoding/wchar_t/4.cc
index 68972e7ab32..d996797a8be 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/encoding/wchar_t/4.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/encoding/wchar_t/4.cc
@@ -31,7 +31,7 @@ void test04()
{
using namespace std;
typedef codecvt<wchar_t, char, mbstate_t> w_codecvt;
- bool test = true;
+ bool test __attribute__((unused)) = true;
locale loc = __gnu_test::try_named_locale("en_US.UTF-8");
locale::global(loc);
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/in/char/1.cc b/libstdc++-v3/testsuite/22_locale/codecvt/in/char/1.cc
index 71f6ac77498..bbc6397ce37 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/in/char/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/in/char/1.cc
@@ -31,7 +31,7 @@ void test01()
typedef codecvt_base::result result;
typedef codecvt<char, char, mbstate_t> c_codecvt;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const char* c_lit = "black pearl jasmine tea";
const char* from_next;
int size = 25;
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/1.cc
index d5a410a7741..d8c2e8fe42a 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/1.cc
@@ -49,7 +49,7 @@ void test01()
typedef char ext_type;
typedef char_traits<wchar_t> int_traits;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const ext_type* e_lit = "black pearl jasmine tea";
const ext_type* efrom_next;
const int_type* i_lit = L"black pearl jasmine tea";
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/2.cc b/libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/2.cc
index 51739b6ae3b..c1e025cff4b 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/2.cc
@@ -49,7 +49,7 @@ void test02()
typedef char ext_type;
typedef char_traits<wchar_t> int_traits;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const ext_type* e_lit =
"\x1\x2\x3\x4\x5\x6\x7\x8\x9\xa\xb\xc\xd\xe\xf\x10\x11\x12\x13"
"\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20!\"#$%&"
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/3.cc b/libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/3.cc
index 118462d618b..361f2c7c418 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/3.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/3.cc
@@ -49,7 +49,7 @@ void test03()
typedef char ext_type;
typedef char_traits<wchar_t> int_traits;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const ext_type* e_lit =
"\x1\x2\x3\x4\x5\x6\x7\x8\x9\xa\xb\xc\xd\xe\xf\x10\x11\x12\x13"
"\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20!\"#$%&"
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/4.cc b/libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/4.cc
index c08ee55efea..14b67284b8c 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/4.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/4.cc
@@ -50,7 +50,7 @@ void test04()
typedef char ext_type;
typedef char_traits<wchar_t> int_traits;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const ext_type* e_lit =
"\x1\x2\x3\x4\x5\x6\x7\x8\x9\xa\xb\xc\xd\xe\xf\x10\x11\x12\x13"
"\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20!\"#$%&"
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/5.cc b/libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/5.cc
index ec65f60c692..aa0879d393d 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/5.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/5.cc
@@ -50,7 +50,7 @@ void test05()
typedef char ext_type;
typedef char_traits<wchar_t> int_traits;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const ext_type e_lit[] = { '\0', '\0', 'f', '\0' };
const ext_type* efrom_next;
const int_type i_lit[] = { L'\0', L'\0', L'f', L'\0' };
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/6.cc b/libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/6.cc
index 1be30323b8b..1eed2880dbc 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/6.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/6.cc
@@ -50,7 +50,7 @@ void test06()
typedef char ext_type;
typedef char_traits<wchar_t> int_traits;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const ext_type* e_lit = "black pearl jasmine tea";
const ext_type* efrom_next;
const int_type* i_lit = L"black pearl jasmine tea";
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/7.cc b/libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/7.cc
index 7d14ab4cfb5..8689be233fa 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/7.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/7.cc
@@ -49,7 +49,7 @@ void test07()
typedef char ext_type;
typedef char_traits<wchar_t> int_traits;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const ext_type* e_lit = "a\xc0\xff";
const ext_type* efrom_next;
const int_type* i_lit = L"a";
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/8.cc b/libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/8.cc
index 296f2eb3171..ee4d82bae63 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/8.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/8.cc
@@ -49,7 +49,7 @@ void test08()
typedef char ext_type;
typedef char_traits<wchar_t> int_traits;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const ext_type* e_lit =
"\x1\x2\x3\x4\x5\x6\x7\x8\x9\xa\xb\xc\xd\xe\xf\x10\x11\x12\x13"
"\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20!\"#$%&"
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/9.cc b/libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/9.cc
index 7ba367b1327..ed6e68849a7 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/9.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/in/wchar_t/9.cc
@@ -49,7 +49,7 @@ void test09()
typedef char ext_type;
typedef char_traits<wchar_t> int_traits;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const ext_type* e_lit =
"\x1\x2\x3\x4\x5\x6\x7\x8\x9\xa\xb\xc\xd\xe\xf\x10\x11\x12\x13"
"\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20!\"#$%&"
@@ -118,7 +118,7 @@ void test09()
// in
w_codecvt::state_type state01;
zero_state(state01);
- result r1;
+ result r1 = codecvt_base::error;
for (int i = 0; i <= esize; ++i)
{
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/length/char/1.cc b/libstdc++-v3/testsuite/22_locale/codecvt/length/char/1.cc
index 3ea244dcbb0..085952863c2 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/length/char/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/length/char/1.cc
@@ -31,7 +31,7 @@ void test01()
typedef codecvt_base::result result;
typedef codecvt<char, char, mbstate_t> c_codecvt;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const char* c_lit = "black pearl jasmine tea";
int size = 25;
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/length/char/2.cc b/libstdc++-v3/testsuite/22_locale/codecvt/length/char/2.cc
index 6e0a7e96f2e..5e5023af850 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/length/char/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/length/char/2.cc
@@ -49,7 +49,7 @@ void test02()
typedef codecvt_base::result result;
typedef codecvt<char, char, mbstate_t> c_codecvt;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const char* c_lit = "black pearl jasmine tea";
int size = 25;
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/1.cc
index 100de8567fc..bc228755a0d 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/1.cc
@@ -44,7 +44,7 @@ void test01()
typedef codecvt<wchar_t, char, mbstate_t> w_codecvt;
typedef char ext_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const ext_type* e_lit = "black pearl jasmine tea";
int size = strlen(e_lit);
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/2.cc b/libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/2.cc
index 6f92b6ce093..a969ef61235 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/2.cc
@@ -44,7 +44,7 @@ void test02()
typedef codecvt<wchar_t, char, mbstate_t> w_codecvt;
typedef char ext_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const ext_type* e_lit =
"\x1\x2\x3\x4\x5\x6\x7\x8\x9\xa\xb\xc\xd\xe\xf\x10\x11\x12\x13"
"\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20!\"#$%&"
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/3.cc b/libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/3.cc
index 8aec29d580b..3512e8ce265 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/3.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/3.cc
@@ -44,7 +44,7 @@ void test03()
typedef codecvt<wchar_t, char, mbstate_t> w_codecvt;
typedef char ext_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const ext_type* e_lit =
"\x1\x2\x3\x4\x5\x6\x7\x8\x9\xa\xb\xc\xd\xe\xf\x10\x11\x12\x13"
"\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20!\"#$%&"
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/4.cc b/libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/4.cc
index 0b7b87c2643..ca742c30240 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/4.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/4.cc
@@ -45,7 +45,7 @@ void test04()
typedef wchar_t int_type;
typedef char ext_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const ext_type* e_lit =
"\x1\x2\x3\x4\x5\x6\x7\x8\x9\xa\xb\xc\xd\xe\xf\x10\x11\x12\x13"
"\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20!\"#$%&"
@@ -72,7 +72,6 @@ void test04()
"\x80\x80\x80\xfc\x90\x80\x80\x80\x80\xfc\xa0\x80\x80\x80\x80"
"\xfd\x80\x80\x80\x80\x80";
- const ext_type* efrom_next;
const int_type i_lit[] = {
0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa, 0xb, 0xc,
0xd, 0xe, 0xf, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/5.cc b/libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/5.cc
index 284233e7b6b..2921a9d9bfd 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/5.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/5.cc
@@ -44,7 +44,7 @@ void test05()
typedef codecvt<wchar_t, char, mbstate_t> w_codecvt;
typedef char ext_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const ext_type e_lit[] = { '\0', '\0', 'f', '\0' };
int size = sizeof(e_lit);
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/6.cc b/libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/6.cc
index 76c151edf05..a0700c18920 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/6.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/6.cc
@@ -62,7 +62,7 @@ void test06()
typedef codecvt<wchar_t, char, mbstate_t> w_codecvt;
typedef char ext_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const ext_type* e_lit = "black pearl jasmine tea";
int size = strlen(e_lit);
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/7.cc b/libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/7.cc
index 7d8ff4a1d80..5f35a0f2b1a 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/7.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/length/wchar_t/7.cc
@@ -47,9 +47,8 @@ void test07()
typedef wchar_t int_type;
typedef char ext_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const ext_type* e_lit = "a\xc0\xff";
- const ext_type* efrom_next;
int size = strlen(e_lit);
locale loc = __gnu_test::try_named_locale("en_US.UTF-8");
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/max_length/char/1.cc b/libstdc++-v3/testsuite/22_locale/codecvt/max_length/char/1.cc
index 789007ae905..2880ec52636 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/max_length/char/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/max_length/char/1.cc
@@ -31,16 +31,11 @@ void test01()
typedef codecvt_base::result result;
typedef codecvt<char, char, mbstate_t> c_codecvt;
- bool test = true;
- const char* c_lit = "black pearl jasmine tea";
- const char* from_next;
+ bool test __attribute__((unused)) = true;
int size = 25;
char* c_arr = new char[size];
char* c_ref = new char[size];
- char* to_next;
-
locale loc = locale::classic();
- c_codecvt::state_type state;
const c_codecvt* cvt = &use_facet<c_codecvt>(loc);
// According to the resolution of DR19 (see also libstd++/9168), in
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/max_length/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/codecvt/max_length/wchar_t/1.cc
index 5ecc99e0c6a..ad8cc24c60c 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/max_length/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/max_length/wchar_t/1.cc
@@ -28,7 +28,7 @@
void test01()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
typedef codecvt<wchar_t, char, mbstate_t> w_codecvt;
locale loc_c = locale::classic();
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/max_length/wchar_t/2.cc b/libstdc++-v3/testsuite/22_locale/codecvt/max_length/wchar_t/2.cc
index c99c823fbe2..57d471e7798 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/max_length/wchar_t/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/max_length/wchar_t/2.cc
@@ -28,7 +28,7 @@
void test02()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
typedef codecvt<wchar_t, char, mbstate_t> w_codecvt;
locale loc = __gnu_test::try_named_locale("en_US.ISO-8859-1");
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/max_length/wchar_t/3.cc b/libstdc++-v3/testsuite/22_locale/codecvt/max_length/wchar_t/3.cc
index 27f67a4f117..229692b5f73 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/max_length/wchar_t/3.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/max_length/wchar_t/3.cc
@@ -28,7 +28,7 @@
void test03()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
typedef codecvt<wchar_t, char, mbstate_t> w_codecvt;
locale loc = __gnu_test::try_named_locale("en_US.ISO-8859-15");
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/max_length/wchar_t/4.cc b/libstdc++-v3/testsuite/22_locale/codecvt/max_length/wchar_t/4.cc
index 8ab6828ddb5..7533e4c0659 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/max_length/wchar_t/4.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/max_length/wchar_t/4.cc
@@ -28,7 +28,7 @@
void test04()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
typedef codecvt<wchar_t, char, mbstate_t> w_codecvt;
locale loc = __gnu_test::try_named_locale("en_US.UTF-8");
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/out/char/1.cc b/libstdc++-v3/testsuite/22_locale/codecvt/out/char/1.cc
index f0ef0a5da63..1dddbb207c7 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/out/char/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/out/char/1.cc
@@ -31,7 +31,7 @@ void test01()
typedef codecvt_base::result result;
typedef codecvt<char, char, mbstate_t> c_codecvt;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const char* c_lit = "black pearl jasmine tea";
const char* from_next;
int size = 25;
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/1.cc
index 82a57c6fdbd..75eb2ff0817 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/1.cc
@@ -47,7 +47,7 @@ void test01()
typedef char ext_type;
typedef char_traits<char> ext_traits;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const ext_type* e_lit = "black pearl jasmine tea";
const int_type* i_lit = L"black pearl jasmine tea";
const int_type* ifrom_next;
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/2.cc b/libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/2.cc
index ff413d5ac8a..cffff049c28 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/2.cc
@@ -47,7 +47,7 @@ void test02()
typedef char ext_type;
typedef char_traits<char> ext_traits;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const ext_type* e_lit =
"\x1\x2\x3\x4\x5\x6\x7\x8\x9\xa\xb\xc\xd\xe\xf\x10\x11\x12\x13"
"\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20!\"#$%&"
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/3.cc b/libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/3.cc
index b1fa9fa4f22..c421488d1c4 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/3.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/3.cc
@@ -47,7 +47,7 @@ void test03()
typedef char ext_type;
typedef char_traits<char> ext_traits;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const ext_type* e_lit =
"\x1\x2\x3\x4\x5\x6\x7\x8\x9\xa\xb\xc\xd\xe\xf\x10\x11\x12\x13"
"\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20!\"#$%&"
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/4.cc b/libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/4.cc
index 4fd193e3055..fabb941b021 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/4.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/4.cc
@@ -47,7 +47,7 @@ void test04()
typedef char ext_type;
typedef char_traits<char> ext_traits;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const ext_type* e_lit =
"\x1\x2\x3\x4\x5\x6\x7\x8\x9\xa\xb\xc\xd\xe\xf\x10\x11\x12\x13"
"\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20!\"#$%&"
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/5.cc b/libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/5.cc
index 13ca4b28719..55ba7eff900 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/5.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/5.cc
@@ -50,7 +50,7 @@ void test05()
typedef char ext_type;
typedef char_traits<char> ext_traits;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const ext_type e_lit[] = { '\0', '\0', 'f', '\0' };
const int_type i_lit[] = { L'\0', L'\0', L'f', L'\0' };
const int_type* ifrom_next;
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/6.cc b/libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/6.cc
index 9ee2770bafd..a44746ff02d 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/6.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/6.cc
@@ -50,7 +50,7 @@ void test06()
typedef char ext_type;
typedef char_traits<char> ext_traits;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const ext_type* e_lit = "black pearl jasmine tea";
const int_type* i_lit = L"black pearl jasmine tea";
const int_type* ifrom_next;
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/7.cc b/libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/7.cc
index 3c069c8bb84..2a469c65c30 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/7.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/out/wchar_t/7.cc
@@ -47,7 +47,7 @@ void test03()
typedef char ext_type;
typedef char_traits<char> ext_traits;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const ext_type* e_lit = "a";
const int_type i_lit[] = { L'a', 0x20ac, 0x0 };
const int_type* ifrom_next;
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/unicode/1.cc b/libstdc++-v3/testsuite/22_locale/codecvt/unicode/1.cc
index b1dc652d6d4..705f43afd6f 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/unicode/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/unicode/1.cc
@@ -119,7 +119,7 @@ void test01()
typedef __enc_traits enc_type;
typedef codecvt<int_type, ext_type, enc_type> unicode_codecvt;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const ext_type* e_lit = "black pearl jasmine tea";
int size = strlen(e_lit);
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/unicode/char.cc b/libstdc++-v3/testsuite/22_locale/codecvt/unicode/char.cc
index 1fa9648f5e8..ad31f9ae2fc 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/unicode/char.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/unicode/char.cc
@@ -126,7 +126,7 @@ void test01()
typedef char_traits<int_type> int_traits;
typedef char_traits<ext_type> ext_traits;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const ext_type* e_lit = "black pearl jasmine tea";
int size = strlen(e_lit);
@@ -215,7 +215,7 @@ void test02()
typedef char_traits<int_type> int_traits;
typedef char_traits<ext_type> ext_traits;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const ext_type* e_lit = "black pearl jasmine tea";
int size = strlen(e_lit);
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/unicode/wchar_t.cc b/libstdc++-v3/testsuite/22_locale/codecvt/unicode/wchar_t.cc
index 5f3d76cfe64..5793b33aa77 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/unicode/wchar_t.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/unicode/wchar_t.cc
@@ -103,7 +103,7 @@ void test01()
typedef char_traits<int_type> int_traits;
typedef char_traits<ext_type> ext_traits;
- bool test = true;
+ bool test __attribute__((unused)) = true;
int size = 23;
char e_lit_base[96] __attribute__((aligned(__alignof__(ext_type)))) =
{
@@ -155,8 +155,8 @@ void test01()
unicode_codecvt::state_type state02("UCS-2BE", "UCS-4BE", 0, 0);
initialize_state(state02);
result r2 = cvt.out(state02, i_lit, i_lit + size, ifrom_next,
- e_arr, e_arr + size, eto_next);
- // XXX VERIFY( r2 == codecvt_base::ok );
+ e_arr, e_arr + size, eto_next);
+ VERIFY( r2 == codecvt_base::ok ); // XXX?
VERIFY( !ext_traits::compare(e_arr, e_lit, size) );
VERIFY( ifrom_next == i_lit + size );
VERIFY( eto_next == e_arr + size );
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/unshift/char/1.cc b/libstdc++-v3/testsuite/22_locale/codecvt/unshift/char/1.cc
index 1a6eadd82fe..25a36ef5ee9 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/unshift/char/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/unshift/char/1.cc
@@ -31,7 +31,7 @@ void test01()
typedef codecvt_base::result result;
typedef codecvt<char, char, mbstate_t> c_codecvt;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const char* c_lit = "black pearl jasmine tea";
const char* from_next;
int size = 25;
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/unshift/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/codecvt/unshift/wchar_t/1.cc
index 65aaea05056..8410a358c4c 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/unshift/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/unshift/wchar_t/1.cc
@@ -46,7 +46,7 @@ void test01()
typedef wchar_t int_type;
typedef char ext_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const ext_type* e_lit = "black pearl jasmine tea";
int size = strlen(e_lit);
ext_type* e_arr = new ext_type[size + 1];
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/unshift/wchar_t/2.cc b/libstdc++-v3/testsuite/22_locale/codecvt/unshift/wchar_t/2.cc
index a6d107cacb6..dce60f81a26 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/unshift/wchar_t/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/unshift/wchar_t/2.cc
@@ -47,7 +47,7 @@ void test02()
typedef char ext_type;
typedef char_traits<char> ext_traits;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const int_type* i_lit =
L"\x1\x2\x3\x4\x5\x6\x7\x8\x9\xa\xb\xc\xd\xe\xf\x10\x11\x12\x13"
L"\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20!\"#$%&"
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/unshift/wchar_t/3.cc b/libstdc++-v3/testsuite/22_locale/codecvt/unshift/wchar_t/3.cc
index 7ca700764c3..e327ef86731 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/unshift/wchar_t/3.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/unshift/wchar_t/3.cc
@@ -47,7 +47,7 @@ void test03()
typedef char ext_type;
typedef char_traits<char> ext_traits;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const int_type i_lit[] = {
0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa, 0xb, 0xc,
0xd, 0xe, 0xf, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
diff --git a/libstdc++-v3/testsuite/22_locale/codecvt/unshift/wchar_t/4.cc b/libstdc++-v3/testsuite/22_locale/codecvt/unshift/wchar_t/4.cc
index 234a4b63f46..d4dc56051af 100644
--- a/libstdc++-v3/testsuite/22_locale/codecvt/unshift/wchar_t/4.cc
+++ b/libstdc++-v3/testsuite/22_locale/codecvt/unshift/wchar_t/4.cc
@@ -47,7 +47,7 @@ void test04()
typedef char ext_type;
typedef char_traits<char> ext_traits;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const int_type i_lit[] = {
0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa, 0xb, 0xc,
0xd, 0xe, 0xf, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
diff --git a/libstdc++-v3/testsuite/22_locale/collate/1.cc b/libstdc++-v3/testsuite/22_locale/collate/1.cc
index 5b55b03f24f..2f6415fcd67 100644
--- a/libstdc++-v3/testsuite/22_locale/collate/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/collate/1.cc
@@ -29,7 +29,7 @@ void test01()
typedef std::messages<char> test_type;
typedef std::locale::facet base_type;
const test_type& obj = std::use_facet<test_type>(std::locale());
- const base_type* base = &obj;
+ const base_type* base __attribute__((unused)) = &obj;
// Check for required typedefs
typedef test_type::char_type char_type;
diff --git a/libstdc++-v3/testsuite/22_locale/collate/compare/char/1.cc b/libstdc++-v3/testsuite/22_locale/collate/compare/char/1.cc
index 42469aea514..62e9510d368 100644
--- a/libstdc++-v3/testsuite/22_locale/collate/compare/char/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/collate/compare/char/1.cc
@@ -29,7 +29,7 @@ void test01()
using namespace std;
typedef std::collate<char>::string_type string_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction
locale loc_c = locale::classic();
@@ -43,9 +43,6 @@ void test01()
// cache the collate facets
const collate<char>& coll_c = use_facet<collate<char> >(loc_c);
- const collate<char>& coll_us = use_facet<collate<char> >(loc_us);
- const collate<char>& coll_fr = use_facet<collate<char> >(loc_fr);
- const collate<char>& coll_de = use_facet<collate<char> >(loc_de);
// int compare(const charT*, const charT*, const charT*, const charT*) const
diff --git a/libstdc++-v3/testsuite/22_locale/collate/compare/char/2.cc b/libstdc++-v3/testsuite/22_locale/collate/compare/char/2.cc
index b6f944949a3..d0bad93196b 100644
--- a/libstdc++-v3/testsuite/22_locale/collate/compare/char/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/collate/compare/char/2.cc
@@ -29,7 +29,7 @@ void test02()
using namespace std;
typedef std::collate<char>::string_type string_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction
locale loc_c = locale::classic();
@@ -42,22 +42,17 @@ void test02()
VERIFY( loc_de != loc_fr );
// cache the collate facets
- const collate<char>& coll_c = use_facet<collate<char> >(loc_c);
- const collate<char>& coll_us = use_facet<collate<char> >(loc_us);
- const collate<char>& coll_fr = use_facet<collate<char> >(loc_fr);
const collate<char>& coll_de = use_facet<collate<char> >(loc_de);
// int compare(const charT*, const charT*, const charT*, const charT*) const
const char* strlit1 = "monkey picked tikuanyin oolong";
- const char* strlit2 = "imperial tea court green oolong";
const char* strlit3 = "Äuglein Augment"; // "C" == "Augment Äuglein"
const char* strlit4 = "Base baß Baß Bast"; // "C" == "Base baß Baß Bast"
int i1;
int i2;
int size1 = char_traits<char>::length(strlit1) - 1;
- int size2 = char_traits<char>::length(strlit2) - 1;
int size3 = char_traits<char>::length(strlit3) - 1;
int size4 = char_traits<char>::length(strlit4) - 1;
diff --git a/libstdc++-v3/testsuite/22_locale/collate/compare/char/3.cc b/libstdc++-v3/testsuite/22_locale/collate/compare/char/3.cc
index 6712832294c..7de98aa7925 100644
--- a/libstdc++-v3/testsuite/22_locale/collate/compare/char/3.cc
+++ b/libstdc++-v3/testsuite/22_locale/collate/compare/char/3.cc
@@ -29,7 +29,7 @@ void test03()
using namespace std;
typedef std::collate<char>::string_type string_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction
locale loc_c = locale::classic();
diff --git a/libstdc++-v3/testsuite/22_locale/collate/compare/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/collate/compare/wchar_t/1.cc
index c1825e2bbf2..995c5b4f699 100644
--- a/libstdc++-v3/testsuite/22_locale/collate/compare/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/collate/compare/wchar_t/1.cc
@@ -29,7 +29,7 @@ void test01()
using namespace std;
typedef std::collate<wchar_t>::string_type string_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction
locale loc_c = locale::classic();
@@ -43,9 +43,6 @@ void test01()
// cache the collate facets
const collate<wchar_t>& coll_c = use_facet<collate<wchar_t> >(loc_c);
- const collate<wchar_t>& coll_us = use_facet<collate<wchar_t> >(loc_us);
- const collate<wchar_t>& coll_fr = use_facet<collate<wchar_t> >(loc_fr);
- const collate<wchar_t>& coll_de = use_facet<collate<wchar_t> >(loc_de);
// int compare(const charT*, const charT*, const charT*, const charT*) const
diff --git a/libstdc++-v3/testsuite/22_locale/collate/compare/wchar_t/2.cc b/libstdc++-v3/testsuite/22_locale/collate/compare/wchar_t/2.cc
index 8d813abde3d..fd4aee7a016 100644
--- a/libstdc++-v3/testsuite/22_locale/collate/compare/wchar_t/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/collate/compare/wchar_t/2.cc
@@ -33,7 +33,7 @@ void test02()
using namespace std;
typedef std::collate<wchar_t>::string_type string_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction
locale loc_c = locale::classic();
@@ -46,22 +46,17 @@ void test02()
VERIFY( loc_de != loc_fr );
// cache the collate facets
- const collate<wchar_t>& coll_c = use_facet<collate<wchar_t> >(loc_c);
- const collate<wchar_t>& coll_us = use_facet<collate<wchar_t> >(loc_us);
- const collate<wchar_t>& coll_fr = use_facet<collate<wchar_t> >(loc_fr);
const collate<wchar_t>& coll_de = use_facet<collate<wchar_t> >(loc_de);
// int compare(const charT*, const charT*, const charT*, const charT*) const
const wchar_t* strlit1 = L"monkey picked tikuanyin oolong";
- const wchar_t* strlit2 = L"imperial tea court green oolong";
const wchar_t* strlit3 = L"Äuglein Augment"; // "C" == "Augment Äuglein"
const wchar_t* strlit4 = L"Base baß Baß Bast"; // "C" == "Base baß Baß Bast"
int i1;
int i2;
int size1 = char_traits<wchar_t>::length(strlit1) - 1;
- int size2 = char_traits<wchar_t>::length(strlit2) - 1;
int size3 = char_traits<wchar_t>::length(strlit3) - 1;
int size4 = char_traits<wchar_t>::length(strlit4) - 1;
diff --git a/libstdc++-v3/testsuite/22_locale/collate/compare/wchar_t/3.cc b/libstdc++-v3/testsuite/22_locale/collate/compare/wchar_t/3.cc
index c4b87bad068..209f7f835e3 100644
--- a/libstdc++-v3/testsuite/22_locale/collate/compare/wchar_t/3.cc
+++ b/libstdc++-v3/testsuite/22_locale/collate/compare/wchar_t/3.cc
@@ -29,7 +29,7 @@ void test03()
using namespace std;
typedef std::collate<wchar_t>::string_type string_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction
locale loc_c = locale::classic();
diff --git a/libstdc++-v3/testsuite/22_locale/collate/hash/char/1.cc b/libstdc++-v3/testsuite/22_locale/collate/hash/char/1.cc
index 9be618a8f4a..e8d9d8ef0a1 100644
--- a/libstdc++-v3/testsuite/22_locale/collate/hash/char/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/collate/hash/char/1.cc
@@ -26,7 +26,7 @@
// Check "C" locale.
void test01()
{
- bool test = true;
+ bool test __attribute__((unused)) = true;
std::string str1("fffff");
std::string str2("ffffffffffff");
diff --git a/libstdc++-v3/testsuite/22_locale/collate/hash/char/2.cc b/libstdc++-v3/testsuite/22_locale/collate/hash/char/2.cc
index 6ef1bedbb08..236d21e128d 100644
--- a/libstdc++-v3/testsuite/22_locale/collate/hash/char/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/collate/hash/char/2.cc
@@ -29,7 +29,7 @@ void test02()
using namespace std;
typedef std::collate<char>::string_type string_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction
locale loc_c = locale::classic();
@@ -42,19 +42,12 @@ void test02()
VERIFY( loc_de != loc_fr );
// cache the collate facets
- const collate<char>& coll_c = use_facet<collate<char> >(loc_c);
- const collate<char>& coll_us = use_facet<collate<char> >(loc_us);
- const collate<char>& coll_fr = use_facet<collate<char> >(loc_fr);
const collate<char>& coll_de = use_facet<collate<char> >(loc_de);
// long hash(const charT*, const charT*) cosnt
- const char* strlit1 = "monkey picked tikuanyin oolong";
- const char* strlit2 = "imperial tea court green oolong";
const char* strlit3 = "Äuglein Augment"; // "C" == "Augment Äuglein"
const char* strlit4 = "Base baß Baß Bast"; // "C" == "Base baß Baß Bast"
- int i1;
- int i2;
long l1;
long l2;
int size3 = char_traits<char>::length(strlit4) - 1;
diff --git a/libstdc++-v3/testsuite/22_locale/collate/hash/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/collate/hash/wchar_t/1.cc
index 73f8da142ca..fad5848e46d 100644
--- a/libstdc++-v3/testsuite/22_locale/collate/hash/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/collate/hash/wchar_t/1.cc
@@ -28,7 +28,7 @@ void test01()
{
using namespace std;
typedef std::collate<wchar_t>::string_type string_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
string_type str1(L"fffff");
string_type str2(L"ffffffffffff");
diff --git a/libstdc++-v3/testsuite/22_locale/collate/hash/wchar_t/2.cc b/libstdc++-v3/testsuite/22_locale/collate/hash/wchar_t/2.cc
index 2347e0469b2..28018032227 100644
--- a/libstdc++-v3/testsuite/22_locale/collate/hash/wchar_t/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/collate/hash/wchar_t/2.cc
@@ -32,7 +32,7 @@ void test02()
{
using namespace std;
typedef std::collate<wchar_t>::string_type string_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction
locale loc_c = locale::classic();
@@ -45,19 +45,12 @@ void test02()
VERIFY( loc_de != loc_fr );
// cache the collate facets
- const collate<wchar_t>& coll_c = use_facet<collate<wchar_t> >(loc_c);
- const collate<wchar_t>& coll_us = use_facet<collate<wchar_t> >(loc_us);
- const collate<wchar_t>& coll_fr = use_facet<collate<wchar_t> >(loc_fr);
const collate<wchar_t>& coll_de = use_facet<collate<wchar_t> >(loc_de);
// long hash(const charT*, const charT*) cosnt
- const wchar_t* strlit1 = L"monkey picked tikuanyin oolong";
- const wchar_t* strlit2 = L"imperial tea court green oolong";
const wchar_t* strlit3 = L"Äuglein Augment"; // "C" == "Augment Äuglein"
const wchar_t* strlit4 = L"Base baß Baß Bast"; // "C" == "Base baß Baß Bast"
- int i1;
- int i2;
long l1;
long l2;
int size3 = char_traits<wchar_t>::length(strlit4) - 1;
diff --git a/libstdc++-v3/testsuite/22_locale/collate/transform/char/2.cc b/libstdc++-v3/testsuite/22_locale/collate/transform/char/2.cc
index 679a4b0c8fd..9dfc00ffaf4 100644
--- a/libstdc++-v3/testsuite/22_locale/collate/transform/char/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/collate/transform/char/2.cc
@@ -28,7 +28,7 @@ void test02()
using namespace std;
typedef std::collate<char>::string_type string_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction
locale loc_c = locale::classic();
@@ -41,14 +41,9 @@ void test02()
VERIFY( loc_de != loc_fr );
// cache the collate facets
- const collate<char>& coll_c = use_facet<collate<char> >(loc_c);
- const collate<char>& coll_us = use_facet<collate<char> >(loc_us);
- const collate<char>& coll_fr = use_facet<collate<char> >(loc_fr);
const collate<char>& coll_de = use_facet<collate<char> >(loc_de);
// long hash(const charT*, const charT*) cosnt
- const char* strlit1 = "monkey picked tikuanyin oolong";
- const char* strlit2 = "imperial tea court green oolong";
const char* strlit3 = "Äuglein Augment"; // "C" == "Augment Äuglein"
const char* strlit4 = "Base baß Baß Bast"; // "C" == "Base baß Baß Bast"
diff --git a/libstdc++-v3/testsuite/22_locale/collate/transform/char/3.cc b/libstdc++-v3/testsuite/22_locale/collate/transform/char/3.cc
index c82d97cfa85..dab1f081b0d 100644
--- a/libstdc++-v3/testsuite/22_locale/collate/transform/char/3.cc
+++ b/libstdc++-v3/testsuite/22_locale/collate/transform/char/3.cc
@@ -28,7 +28,7 @@ void test03()
using namespace std;
typedef std::collate<char>::string_type string_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction
locale loc_c = locale::classic();
diff --git a/libstdc++-v3/testsuite/22_locale/collate/transform/wchar_t/2.cc b/libstdc++-v3/testsuite/22_locale/collate/transform/wchar_t/2.cc
index 4943ba0b7d5..d21d3996492 100644
--- a/libstdc++-v3/testsuite/22_locale/collate/transform/wchar_t/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/collate/transform/wchar_t/2.cc
@@ -32,7 +32,7 @@ void test02()
using namespace std;
typedef std::collate<wchar_t>::string_type string_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction
locale loc_c = locale::classic();
@@ -45,14 +45,9 @@ void test02()
VERIFY( loc_de != loc_fr );
// cache the collate facets
- const collate<wchar_t>& coll_c = use_facet<collate<wchar_t> >(loc_c);
- const collate<wchar_t>& coll_us = use_facet<collate<wchar_t> >(loc_us);
- const collate<wchar_t>& coll_fr = use_facet<collate<wchar_t> >(loc_fr);
const collate<wchar_t>& coll_de = use_facet<collate<wchar_t> >(loc_de);
// long hash(const charT*, const charT*) cosnt
- const wchar_t* strlit1 = L"monkey picked tikuanyin oolong";
- const wchar_t* strlit2 = L"imperial tea court green oolong";
const wchar_t* strlit3 = L"Äuglein Augment"; // "C" == "Augment Äuglein"
const wchar_t* strlit4 = L"Base baß Baß Bast"; // "C" == "Base baß Baß Bast"
diff --git a/libstdc++-v3/testsuite/22_locale/collate/transform/wchar_t/3.cc b/libstdc++-v3/testsuite/22_locale/collate/transform/wchar_t/3.cc
index 583d747145a..fdd88f70885 100644
--- a/libstdc++-v3/testsuite/22_locale/collate/transform/wchar_t/3.cc
+++ b/libstdc++-v3/testsuite/22_locale/collate/transform/wchar_t/3.cc
@@ -28,7 +28,7 @@ void test03()
using namespace std;
typedef std::collate<wchar_t>::string_type string_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction
locale loc_c = locale::classic();
diff --git a/libstdc++-v3/testsuite/22_locale/collate_byname/1.cc b/libstdc++-v3/testsuite/22_locale/collate_byname/1.cc
index f650be796a0..be4524f9ca6 100644
--- a/libstdc++-v3/testsuite/22_locale/collate_byname/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/collate_byname/1.cc
@@ -28,7 +28,7 @@ void test01()
using namespace std;
typedef std::collate<char>::string_type string_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
string str;
locale loc_c = locale::classic();
@@ -41,7 +41,6 @@ void test01()
VERIFY( loc_de != loc_byname );
// cache the collate facets
- const collate<char>& coll_byname = use_facet<collate<char> >(loc_byname);
const collate<char>& coll_de = use_facet<collate<char> >(loc_de);
// Check German "de_DE" locale.
diff --git a/libstdc++-v3/testsuite/22_locale/ctype/1.cc b/libstdc++-v3/testsuite/22_locale/ctype/1.cc
index 541f2b9c237..adda6fd548d 100644
--- a/libstdc++-v3/testsuite/22_locale/ctype/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/ctype/1.cc
@@ -141,14 +141,15 @@ test01()
ctype_base::mask m01;
ctype_base::mask m02;
-
+ ctype_base::mask res;
+
m01 = ctype_base::space;
m02 = ctype_base::xdigit;
- m01 & m02;
- m01 | m02;
- m01 ^ m02;
- ~m01;
+ res = m01 & m02;
+ res = m01 | m02;
+ res = m01 ^ m02;
+ res = ~m01;
m01 &= m02;
m01 |= m02;
m01 ^= m02;
diff --git a/libstdc++-v3/testsuite/22_locale/ctype/cons/char/1.cc b/libstdc++-v3/testsuite/22_locale/ctype/cons/char/1.cc
index 4846aec220e..d21ee946d7a 100644
--- a/libstdc++-v3/testsuite/22_locale/ctype/cons/char/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/ctype/cons/char/1.cc
@@ -51,7 +51,7 @@ public:
void test01()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
comma_ctype obj;
const ctype_base::mask* tmp = obj.get_classic_table();
diff --git a/libstdc++-v3/testsuite/22_locale/ctype/is/char/1.cc b/libstdc++-v3/testsuite/22_locale/ctype/is/char/1.cc
index 8e80fd2fb96..523044f6d32 100644
--- a/libstdc++-v3/testsuite/22_locale/ctype/is/char/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/ctype/is/char/1.cc
@@ -35,10 +35,9 @@ class gnu_ctype: public std::ctype<char_type> { };
void test01()
{
- bool test = true;
+ bool test __attribute__((unused)) = true;
const char_type strlit00[] = "manilla, cebu, tandag PHILIPPINES";
const char_type strlit01[] = "MANILLA, CEBU, TANDAG PHILIPPINES";
- const char_type strlit02[] = "manilla, cebu, tandag philippines";
const char_type c00 = 'S';
const char_type c10 = 's';
const char_type c20 = '9';
@@ -46,13 +45,9 @@ void test01()
const char_type c40 = '!';
const char_type c50 = 'F';
const char_type c60 = 'f';
- const char_type c70 = 'X';
const char_type c80 = 'x';
gnu_ctype gctype;
- char_type c100;
- int len = std::char_traits<char_type>::length(strlit00);
- char_type c_array[len + 1];
// sanity check ctype_base::mask members
int i01 = std::ctype_base::space;
@@ -66,7 +61,6 @@ void test01()
int i09 = std::ctype_base::graph;
int i10 = std::ctype_base::print;
int i11 = std::ctype_base::cntrl;
- int i12 = sizeof(std::ctype_base::mask);
VERIFY ( i01 != i02);
VERIFY ( i02 != i03);
VERIFY ( i03 != i04);
diff --git a/libstdc++-v3/testsuite/22_locale/ctype/is/char/2.cc b/libstdc++-v3/testsuite/22_locale/ctype/is/char/2.cc
index 89be53dd3f0..0211607de8f 100644
--- a/libstdc++-v3/testsuite/22_locale/ctype/is/char/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/ctype/is/char/2.cc
@@ -41,7 +41,7 @@ void test02()
typedef ctype_base::mask mask;
typedef vector<mask> vector_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// const int max = numeric_limits<char>::max();
const int max = 255;
diff --git a/libstdc++-v3/testsuite/22_locale/ctype/is/char/3.cc b/libstdc++-v3/testsuite/22_locale/ctype/is/char/3.cc
index 0b56b5ca3b0..9ddeadb1f03 100644
--- a/libstdc++-v3/testsuite/22_locale/ctype/is/char/3.cc
+++ b/libstdc++-v3/testsuite/22_locale/ctype/is/char/3.cc
@@ -35,7 +35,7 @@ typedef char char_type;
// Per Liboriussen <liborius@stofanet.dk>
void test03()
{
- bool test = true;
+ bool test __attribute__((unused)) = true;
std::ctype_base::mask maskdata[256];
for (int i = 0; i < 256; ++i)
maskdata[i] = std::ctype_base::alpha;
diff --git a/libstdc++-v3/testsuite/22_locale/ctype/is/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/ctype/is/wchar_t/1.cc
index ff115d2cdbe..29fdfe97c7e 100644
--- a/libstdc++-v3/testsuite/22_locale/ctype/is/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/ctype/is/wchar_t/1.cc
@@ -35,10 +35,9 @@ class gnu_ctype: public std::ctype<char_type> { };
void test01()
{
- bool test = true;
+ bool test __attribute__((unused)) = true;
const char_type strlit00[] = L"manilla, cebu, tandag PHILIPPINES";
const char_type strlit01[] = L"MANILLA, CEBU, TANDAG PHILIPPINES";
- const char_type strlit02[] = L"manilla, cebu, tandag philippines";
const char_type c00 = L'S';
const char_type c10 = L's';
const char_type c20 = L'9';
@@ -46,13 +45,9 @@ void test01()
const char_type c40 = L'!';
const char_type c50 = L'F';
const char_type c60 = L'f';
- const char_type c70 = L'X';
const char_type c80 = L'x';
gnu_ctype gctype;
- char_type c100;
- int len = std::char_traits<char_type>::length(strlit00);
- char_type c_array[len + 1];
// sanity check ctype_base::mask members
int i01 = std::ctype_base::space;
@@ -66,7 +61,6 @@ void test01()
int i09 = std::ctype_base::graph;
int i10 = std::ctype_base::print;
int i11 = std::ctype_base::cntrl;
- int i12 = sizeof(std::ctype_base::mask);
VERIFY ( i01 != i02);
VERIFY ( i02 != i03);
VERIFY ( i03 != i04);
@@ -100,7 +94,6 @@ void test01()
std::ctype_base::mask m02[13];
const char_type* cc0 = strlit00;
const char_type* cc1 = NULL;
- const char_type* cc2 = NULL;
cc0 = strlit00;
m01[0] = m00;
diff --git a/libstdc++-v3/testsuite/22_locale/ctype/is/wchar_t/2.cc b/libstdc++-v3/testsuite/22_locale/ctype/is/wchar_t/2.cc
index c9eb1e0b2a4..df028783f85 100644
--- a/libstdc++-v3/testsuite/22_locale/ctype/is/wchar_t/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/ctype/is/wchar_t/2.cc
@@ -41,7 +41,7 @@ void test02()
typedef ctype_base::mask mask;
typedef vector<mask> vector_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// const int max = numeric_limits<char>::max();
const int max = 255;
diff --git a/libstdc++-v3/testsuite/22_locale/ctype/narrow/char/1.cc b/libstdc++-v3/testsuite/22_locale/ctype/narrow/char/1.cc
index bbe0c2eadf0..6643803a1a1 100644
--- a/libstdc++-v3/testsuite/22_locale/ctype/narrow/char/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/ctype/narrow/char/1.cc
@@ -39,7 +39,7 @@ void test01()
using namespace std;
typedef char wide_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const char dfault = '?';
const locale loc_c = locale::classic();
const ctype<wide_type>& ctype_c = use_facet<ctype<wide_type> >(loc_c);
@@ -49,7 +49,7 @@ void test01()
vector<char> narrow_chars(wide.length() + 1);
// narrow(charT c, char dfault) const
- for (int i = 0; i < wide.length(); ++i)
+ for (size_t i = 0; i < wide.length(); ++i)
{
char c = ctype_c.narrow(wide[i], dfault);
VERIFY( c == narrow[i] );
@@ -58,7 +58,7 @@ void test01()
// narrow(const charT* low, const charT* high, char dfault, char* dest) const
ctype_c.narrow(&wide[0], &wide[0] + wide.length(), dfault, &narrow_chars[0]);
VERIFY( narrow_chars[0] != dfault );
- for (int i = 0; i < wide.length(); ++i)
+ for (size_t i = 0; i < wide.length(); ++i)
VERIFY( narrow_chars[i] == narrow[i] );
}
diff --git a/libstdc++-v3/testsuite/22_locale/ctype/narrow/char/2.cc b/libstdc++-v3/testsuite/22_locale/ctype/narrow/char/2.cc
index aa3ff4c70bc..1f0e1619afc 100644
--- a/libstdc++-v3/testsuite/22_locale/ctype/narrow/char/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/ctype/narrow/char/2.cc
@@ -38,7 +38,7 @@ void test02()
using namespace std;
typedef char wide_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const char dfault = '?';
const locale loc_c = locale::classic();
const ctype<wide_type>& ctype_c = use_facet<ctype<wide_type> >(loc_c);
@@ -53,7 +53,7 @@ void test02()
vector<char> narrow_chars(wide.length() + 1);
// narrow(charT c, char dfault) const
- for (int i = 0; i < wide.length(); ++i)
+ for (size_t i = 0; i < wide.length(); ++i)
{
char c = ctype_c.narrow(wide[i], dfault);
VERIFY( c == narrow[i] );
@@ -62,7 +62,7 @@ void test02()
// narrow(const charT* low, const charT* high, char dfault, char* dest) const
ctype_c.narrow(&wide[0], &wide[0] + wide.length(), dfault, &narrow_chars[0]);
VERIFY( narrow_chars[0] != dfault );
- for (int i = 0; i < wide.length(); ++i)
+ for (size_t i = 0; i < wide.length(); ++i)
VERIFY( narrow_chars[i] == narrow[i] );
}
diff --git a/libstdc++-v3/testsuite/22_locale/ctype/narrow/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/ctype/narrow/wchar_t/1.cc
index 459dcf7db57..a9d30f44cc2 100644
--- a/libstdc++-v3/testsuite/22_locale/ctype/narrow/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/ctype/narrow/wchar_t/1.cc
@@ -39,7 +39,7 @@ void test01()
using namespace std;
typedef wchar_t wide_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const char dfault = '?';
const locale loc_c = locale::classic();
const ctype<wide_type>& ctype_c = use_facet<ctype<wide_type> >(loc_c);
@@ -49,7 +49,7 @@ void test01()
vector<char> narrow_chars(wide.length() + 1);
// narrow(charT c, char dfault) const
- for (int i = 0; i < wide.length(); ++i)
+ for (size_t i = 0; i < wide.length(); ++i)
{
char c = ctype_c.narrow(wide[i], dfault);
VERIFY( c == narrow[i] );
@@ -58,7 +58,7 @@ void test01()
// narrow(const charT* low, const charT* high, char dfault, char* dest) const
ctype_c.narrow(&wide[0], &wide[0] + wide.length(), dfault, &narrow_chars[0]);
VERIFY( narrow_chars[0] != dfault );
- for (int i = 0; i < wide.length(); ++i)
+ for (size_t i = 0; i < wide.length(); ++i)
VERIFY( narrow_chars[i] == narrow[i] );
}
diff --git a/libstdc++-v3/testsuite/22_locale/ctype/narrow/wchar_t/2.cc b/libstdc++-v3/testsuite/22_locale/ctype/narrow/wchar_t/2.cc
index 8f8fecc6ea9..5422a5685a9 100644
--- a/libstdc++-v3/testsuite/22_locale/ctype/narrow/wchar_t/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/ctype/narrow/wchar_t/2.cc
@@ -38,7 +38,7 @@ void test02()
using namespace std;
typedef wchar_t wide_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const char dfault = '?';
const locale loc_c = locale::classic();
const ctype<wide_type>& ctype_c = use_facet<ctype<wide_type> >(loc_c);
@@ -53,7 +53,7 @@ void test02()
vector<char> narrow_chars(wide.length() + 1);
// narrow(charT c, char dfault) const
- for (int i = 0; i < wide.length(); ++i)
+ for (size_t i = 0; i < wide.length(); ++i)
{
char c = ctype_c.narrow(wide[i], dfault);
VERIFY( c == narrow[i] );
@@ -62,7 +62,7 @@ void test02()
// narrow(const charT* low, const charT* high, char dfault, char* dest) const
ctype_c.narrow(&wide[0], &wide[0] + wide.length(), dfault, &narrow_chars[0]);
VERIFY( narrow_chars[0] != dfault );
- for (int i = 0; i < wide.length(); ++i)
+ for (size_t i = 0; i < wide.length(); ++i)
VERIFY( narrow_chars[i] == narrow[i] );
}
diff --git a/libstdc++-v3/testsuite/22_locale/ctype/narrow/wchar_t/3.cc b/libstdc++-v3/testsuite/22_locale/ctype/narrow/wchar_t/3.cc
index ac3b436f590..1e00a840a2b 100644
--- a/libstdc++-v3/testsuite/22_locale/ctype/narrow/wchar_t/3.cc
+++ b/libstdc++-v3/testsuite/22_locale/ctype/narrow/wchar_t/3.cc
@@ -36,7 +36,7 @@
void test03()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
locale loc = __gnu_test::try_named_locale("se_NO.UTF-8");
const ctype<wchar_t>& wct = use_facet<ctype<wchar_t> >(loc);
diff --git a/libstdc++-v3/testsuite/22_locale/ctype/scan/char/1.cc b/libstdc++-v3/testsuite/22_locale/ctype/scan/char/1.cc
index 6e8d1d31e26..86ca5cc2f01 100644
--- a/libstdc++-v3/testsuite/22_locale/ctype/scan/char/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/ctype/scan/char/1.cc
@@ -50,7 +50,7 @@ class gnu_ctype: public std::ctype<char_type> { };
// Sanity check scan_is() and scan_not().
void test01()
{
- bool test = true;
+ bool test __attribute__((unused)) = true;
const char_type *const ca = "aaaaa";
const char_type *const cz = "zzzzz";
diff --git a/libstdc++-v3/testsuite/22_locale/ctype/scan/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/ctype/scan/wchar_t/1.cc
index afe99f378b7..dead79ea2f6 100644
--- a/libstdc++-v3/testsuite/22_locale/ctype/scan/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/ctype/scan/wchar_t/1.cc
@@ -51,7 +51,7 @@ class gnu_ctype: public std::ctype<char_type> { };
// Sanity check scan_is() and scan_not().
void test01()
{
- bool test = true;
+ bool test __attribute__((unused)) = true;
const char_type *const ca = L"aaaaa";
const char_type *const cz = L"zzzzz";
diff --git a/libstdc++-v3/testsuite/22_locale/ctype/to/char/1.cc b/libstdc++-v3/testsuite/22_locale/ctype/to/char/1.cc
index a337d8e5ed4..504eb89d540 100644
--- a/libstdc++-v3/testsuite/22_locale/ctype/to/char/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/ctype/to/char/1.cc
@@ -35,19 +35,12 @@ class gnu_ctype: public std::ctype<char_type> { };
void test01()
{
- bool test = true;
+ bool test __attribute__((unused)) = true;
const char_type strlit00[] = "manilla, cebu, tandag PHILIPPINES";
const char_type strlit01[] = "MANILLA, CEBU, TANDAG PHILIPPINES";
const char_type strlit02[] = "manilla, cebu, tandag philippines";
const char_type c00 = 'S';
const char_type c10 = 's';
- const char_type c20 = '9';
- const char_type c30 = ' ';
- const char_type c40 = '!';
- const char_type c50 = 'F';
- const char_type c60 = 'f';
- const char_type c70 = 'X';
- const char_type c80 = 'x';
gnu_ctype gctype;
char_type c100;
@@ -66,7 +59,6 @@ void test01()
int i09 = std::ctype_base::graph;
int i10 = std::ctype_base::print;
int i11 = std::ctype_base::cntrl;
- int i12 = sizeof(std::ctype_base::mask);
VERIFY ( i01 != i02);
VERIFY ( i02 != i03);
VERIFY ( i03 != i04);
diff --git a/libstdc++-v3/testsuite/22_locale/ctype/to/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/ctype/to/wchar_t/1.cc
index 9f042abc438..9d446c791ca 100644
--- a/libstdc++-v3/testsuite/22_locale/ctype/to/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/ctype/to/wchar_t/1.cc
@@ -35,19 +35,12 @@ class gnu_ctype: public std::ctype<char_type> { };
void test01()
{
- bool test = true;
+ bool test __attribute__((unused)) = true;
const char_type strlit00[] = L"manilla, cebu, tandag PHILIPPINES";
const char_type strlit01[] = L"MANILLA, CEBU, TANDAG PHILIPPINES";
const char_type strlit02[] = L"manilla, cebu, tandag philippines";
const char_type c00 = L'S';
const char_type c10 = L's';
- const char_type c20 = L'9';
- const char_type c30 = L' ';
- const char_type c40 = L'!';
- const char_type c50 = L'F';
- const char_type c60 = L'f';
- const char_type c70 = L'X';
- const char_type c80 = L'x';
gnu_ctype gctype;
char_type c100;
@@ -66,7 +59,6 @@ void test01()
int i09 = std::ctype_base::graph;
int i10 = std::ctype_base::print;
int i11 = std::ctype_base::cntrl;
- int i12 = sizeof(std::ctype_base::mask);
VERIFY ( i01 != i02);
VERIFY ( i02 != i03);
VERIFY ( i03 != i04);
diff --git a/libstdc++-v3/testsuite/22_locale/ctype/widen/char/1.cc b/libstdc++-v3/testsuite/22_locale/ctype/widen/char/1.cc
index f7a2c15ad86..e4ac43ab6cf 100644
--- a/libstdc++-v3/testsuite/22_locale/ctype/widen/char/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/ctype/widen/char/1.cc
@@ -38,8 +38,7 @@ void test01()
using namespace std;
typedef char wide_type;
- bool test = true;
- const char dfault = '?';
+ bool test __attribute__((unused)) = true;
const locale loc_c = locale::classic();
const ctype<wide_type>& ctype_c = use_facet<ctype<wide_type> >(loc_c);
@@ -48,7 +47,7 @@ void test01()
vector<wide_type> wide_chars(narrow.length() + 1);
// widen(char c) const
- for (int i = 0; i < narrow.length(); ++i)
+ for (size_t i = 0; i < narrow.length(); ++i)
{
char c = ctype_c.widen(narrow[i]);
VERIFY( c == wide[i] );
@@ -56,7 +55,7 @@ void test01()
// widen(const char* low, const char* high, charT* dest) const
ctype_c.widen(&narrow[0], &narrow[0] + narrow.length(), &wide_chars[0]);
- for (int i = 0; i < narrow.length(); ++i)
+ for (size_t i = 0; i < narrow.length(); ++i)
VERIFY( wide_chars[i] == wide[i] );
}
diff --git a/libstdc++-v3/testsuite/22_locale/ctype/widen/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/ctype/widen/wchar_t/1.cc
index 042a0b5f705..7e2377475e0 100644
--- a/libstdc++-v3/testsuite/22_locale/ctype/widen/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/ctype/widen/wchar_t/1.cc
@@ -38,8 +38,7 @@ void test01()
using namespace std;
typedef wchar_t wide_type;
- bool test = true;
- const char dfault = '?';
+ bool test __attribute__((unused)) = true;
const locale loc_c = locale::classic();
const ctype<wide_type>& ctype_c = use_facet<ctype<wide_type> >(loc_c);
@@ -48,7 +47,7 @@ void test01()
vector<wide_type> wide_chars(narrow.length() + 1);
// widen(char c) const
- for (int i = 0; i < narrow.length(); ++i)
+ for (size_t i = 0; i < narrow.length(); ++i)
{
char c = ctype_c.widen(narrow[i]);
VERIFY( c == wide[i] );
@@ -56,7 +55,7 @@ void test01()
// widen(const char* low, const char* high, charT* dest) const
ctype_c.widen(&narrow[0], &narrow[0] + narrow.length(), &wide_chars[0]);
- for (int i = 0; i < narrow.length(); ++i)
+ for (size_t i = 0; i < narrow.length(); ++i)
VERIFY( wide_chars[i] == wide[i] );
}
diff --git a/libstdc++-v3/testsuite/22_locale/ctype/widen/wchar_t/2.cc b/libstdc++-v3/testsuite/22_locale/ctype/widen/wchar_t/2.cc
index 6f9dec45d3c..0cb05dd930a 100644
--- a/libstdc++-v3/testsuite/22_locale/ctype/widen/wchar_t/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/ctype/widen/wchar_t/2.cc
@@ -36,7 +36,7 @@
void test02()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
locale loc = __gnu_test::try_named_locale("en_US.ISO-8859-1");
const ctype<wchar_t>& wct = use_facet<ctype<wchar_t> >(loc);
diff --git a/libstdc++-v3/testsuite/22_locale/ctype/widen/wchar_t/3.cc b/libstdc++-v3/testsuite/22_locale/ctype/widen/wchar_t/3.cc
index d9b32b0a6cb..8d6f1f3c7ae 100644
--- a/libstdc++-v3/testsuite/22_locale/ctype/widen/wchar_t/3.cc
+++ b/libstdc++-v3/testsuite/22_locale/ctype/widen/wchar_t/3.cc
@@ -36,7 +36,7 @@
void test03()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
locale loc = __gnu_test::try_named_locale("se_NO.UTF-8");
const ctype<wchar_t>& wct = use_facet<ctype<wchar_t> >(loc);
diff --git a/libstdc++-v3/testsuite/22_locale/facet/1.cc b/libstdc++-v3/testsuite/22_locale/facet/1.cc
index f93265bd7d1..83609561cc3 100644
--- a/libstdc++-v3/testsuite/22_locale/facet/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/facet/1.cc
@@ -172,7 +172,7 @@ std::locale::id gnu_facet::id;
void test01()
{
- bool test = true;
+ bool test __attribute__((unused)) = true;
const std::string name_no("*");
const std::string name_c("C");
diff --git a/libstdc++-v3/testsuite/22_locale/facet/2.cc b/libstdc++-v3/testsuite/22_locale/facet/2.cc
index 844eb7b3d24..f3059ee05b7 100644
--- a/libstdc++-v3/testsuite/22_locale/facet/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/facet/2.cc
@@ -46,7 +46,7 @@ typedef surf facet_type;
void test02()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// 1: Destroyed when out of scope.
VERIFY( counter == 0 );
diff --git a/libstdc++-v3/testsuite/22_locale/global_templates/1.cc b/libstdc++-v3/testsuite/22_locale/global_templates/1.cc
index 49886aa18bf..c82c4d3c77f 100644
--- a/libstdc++-v3/testsuite/22_locale/global_templates/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/global_templates/1.cc
@@ -32,7 +32,7 @@ void test01()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// construct a locale object with the C facet
const locale& cloc = locale::classic();
@@ -45,17 +45,17 @@ void test01()
VERIFY( has_facet<gnu_codecvt>(loc) );
try
- { const ccodecvt& cvt01 = use_facet<ccodecvt>(cloc); }
+ { const ccodecvt& cvt01 __attribute__((unused)) = use_facet<ccodecvt>(cloc); }
catch(...)
{ VERIFY( false ); }
try
- { const gnu_codecvt& cvt02 = use_facet<gnu_codecvt>(loc); }
+ { const gnu_codecvt& cvt02 __attribute__((unused)) = use_facet<gnu_codecvt>(loc); }
catch(...)
{ VERIFY( false ); }
try
- { const ccodecvt& cvt03 = use_facet<gnu_codecvt>(cloc); }
+ { const ccodecvt& cvt03 __attribute__((unused)) = use_facet<gnu_codecvt>(cloc); }
catch(bad_cast& obj)
{ VERIFY( true ); }
catch(...)
diff --git a/libstdc++-v3/testsuite/22_locale/locale/cons/2.cc b/libstdc++-v3/testsuite/22_locale/locale/cons/2.cc
index e49756f18fd..af51d3313d6 100644
--- a/libstdc++-v3/testsuite/22_locale/locale/cons/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/locale/cons/2.cc
@@ -110,7 +110,7 @@ void test01()
typedef __enc_traits enc_type;
typedef codecvt<int_type, ext_type, enc_type> unicode_codecvt;
- bool test = true;
+ bool test __attribute__((unused)) = true;
string str1, str2;
// construct a locale object with the C facet
diff --git a/libstdc++-v3/testsuite/22_locale/locale/cons/4.cc b/libstdc++-v3/testsuite/22_locale/locale/cons/4.cc
index e450441816e..9343535a8ad 100644
--- a/libstdc++-v3/testsuite/22_locale/locale/cons/4.cc
+++ b/libstdc++-v3/testsuite/22_locale/locale/cons/4.cc
@@ -28,7 +28,7 @@
// libstdc++/7811
void test03()
{
- bool test = true;
+ bool test __attribute__((unused)) = true;
#ifdef _GLIBCXX_HAVE_SETENV
const char* LC_ALL_orig = getenv("LC_ALL");
if (!setenv("LC_ALL", "it_IT", 1))
diff --git a/libstdc++-v3/testsuite/22_locale/locale/cons/5.cc b/libstdc++-v3/testsuite/22_locale/locale/cons/5.cc
index 5492a0ce723..697b4a49c67 100644
--- a/libstdc++-v3/testsuite/22_locale/locale/cons/5.cc
+++ b/libstdc++-v3/testsuite/22_locale/locale/cons/5.cc
@@ -28,7 +28,7 @@
// More tests for locale("") == POSIX locale::name.
void test04()
{
- bool test = true;
+ bool test __attribute__((unused)) = true;
using namespace std;
#ifdef _GLIBCXX_HAVE_SETENV
diff --git a/libstdc++-v3/testsuite/22_locale/locale/cons/6.cc b/libstdc++-v3/testsuite/22_locale/locale/cons/6.cc
index 6b11ac1e9a1..07682e5b60a 100644
--- a/libstdc++-v3/testsuite/22_locale/locale/cons/6.cc
+++ b/libstdc++-v3/testsuite/22_locale/locale/cons/6.cc
@@ -29,7 +29,7 @@ void
test01()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const string name_c("C");
const string str_unnamed("*");
string str;
@@ -46,10 +46,6 @@ test01()
VERIFY( has_facet<numpunct<char> >(loc_1) );
VERIFY( has_facet<numpunct<char> >(loc_c) );
- // extract facet
- const numpunct<char>& f_nump_1 = use_facet<numpunct<char> >(loc_1);
- const numpunct<char>& f_nump_c = use_facet<numpunct<char> >(loc_c);
-
// attempt to re-synthesize classic locale
locale loc_2 = loc_1.combine<numpunct<char> >(loc_c);
VERIFY( loc_2.name() == str_unnamed );
diff --git a/libstdc++-v3/testsuite/22_locale/locale/cons/7.cc b/libstdc++-v3/testsuite/22_locale/locale/cons/7.cc
index ffcd3ab943a..8b4aafe14f4 100644
--- a/libstdc++-v3/testsuite/22_locale/locale/cons/7.cc
+++ b/libstdc++-v3/testsuite/22_locale/locale/cons/7.cc
@@ -28,7 +28,7 @@ void
test02()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const string name_c("C");
const string name_no("*");
string str;
diff --git a/libstdc++-v3/testsuite/22_locale/locale/cons/7222-c.cc b/libstdc++-v3/testsuite/22_locale/locale/cons/7222-c.cc
index 003462441ee..ce7b2695ee8 100644
--- a/libstdc++-v3/testsuite/22_locale/locale/cons/7222-c.cc
+++ b/libstdc++-v3/testsuite/22_locale/locale/cons/7222-c.cc
@@ -28,7 +28,7 @@
// libstdc++/7222
void test02()
{
- bool test = true;
+ bool test __attribute__((unused)) = true;
std::locale loc_c1("C");
std::locale loc_c2("C");
diff --git a/libstdc++-v3/testsuite/22_locale/locale/cons/7222-env.cc b/libstdc++-v3/testsuite/22_locale/locale/cons/7222-env.cc
index 8bd9c4ace2a..4524a070b7a 100644
--- a/libstdc++-v3/testsuite/22_locale/locale/cons/7222-env.cc
+++ b/libstdc++-v3/testsuite/22_locale/locale/cons/7222-env.cc
@@ -28,7 +28,7 @@
// libstdc++/7222
void test02()
{
- bool test = true;
+ bool test __attribute__((unused)) = true;
std::locale loc_1 = __gnu_test::try_named_locale("");
std::locale loc_2 = __gnu_test::try_named_locale("");
diff --git a/libstdc++-v3/testsuite/22_locale/locale/cons/8.cc b/libstdc++-v3/testsuite/22_locale/locale/cons/8.cc
index 433fc1fe9ba..5d4fd272f99 100644
--- a/libstdc++-v3/testsuite/22_locale/locale/cons/8.cc
+++ b/libstdc++-v3/testsuite/22_locale/locale/cons/8.cc
@@ -28,7 +28,7 @@ void
test01()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const locale l1("C");
const locale l2 =
diff --git a/libstdc++-v3/testsuite/22_locale/locale/global_locale_objects/1.cc b/libstdc++-v3/testsuite/22_locale/locale/global_locale_objects/1.cc
index 3d2c931ec6d..e5524dd04c9 100644
--- a/libstdc++-v3/testsuite/22_locale/locale/global_locale_objects/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/locale/global_locale_objects/1.cc
@@ -30,7 +30,7 @@ class gnu_codecvt: public ccodecvt { };
void test01()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
string str1, str2;
diff --git a/libstdc++-v3/testsuite/22_locale/locale/global_locale_objects/2.cc b/libstdc++-v3/testsuite/22_locale/locale/global_locale_objects/2.cc
index 81b06ee0ecd..653eaaf99d6 100644
--- a/libstdc++-v3/testsuite/22_locale/locale/global_locale_objects/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/locale/global_locale_objects/2.cc
@@ -28,7 +28,7 @@
void test02()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const string ph("en_PH");
const string mx("es_MX");
diff --git a/libstdc++-v3/testsuite/22_locale/locale/global_locale_objects/3.cc b/libstdc++-v3/testsuite/22_locale/locale/global_locale_objects/3.cc
index 87d8193051e..5e3ecedee42 100644
--- a/libstdc++-v3/testsuite/22_locale/locale/global_locale_objects/3.cc
+++ b/libstdc++-v3/testsuite/22_locale/locale/global_locale_objects/3.cc
@@ -43,7 +43,7 @@ typedef surf facet_type;
void test03()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
string name;
locale global_orig;
diff --git a/libstdc++-v3/testsuite/22_locale/locale/operations/1.cc b/libstdc++-v3/testsuite/22_locale/locale/operations/1.cc
index 8fe6aa7ea3d..003da9a35d4 100644
--- a/libstdc++-v3/testsuite/22_locale/locale/operations/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/locale/operations/1.cc
@@ -31,7 +31,7 @@ void test01()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
string str1, str2;
// construct a locale object with the C facet
diff --git a/libstdc++-v3/testsuite/22_locale/locale/operations/2.cc b/libstdc++-v3/testsuite/22_locale/locale/operations/2.cc
index ed06e10a635..aa5db2ac520 100644
--- a/libstdc++-v3/testsuite/22_locale/locale/operations/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/locale/operations/2.cc
@@ -38,7 +38,7 @@ protected:
void test02()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// Sanity check.
locale loc_c = locale::classic();
diff --git a/libstdc++-v3/testsuite/22_locale/messages/1.cc b/libstdc++-v3/testsuite/22_locale/messages/1.cc
index 6eb593239b1..c1281eda3ac 100644
--- a/libstdc++-v3/testsuite/22_locale/messages/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/messages/1.cc
@@ -30,8 +30,8 @@ void test01()
typedef std::locale::facet base_type1;
typedef std::messages_base base_type2;
const test_type& obj = std::use_facet<test_type>(std::locale());
- const base_type1* base1 = &obj;
- const base_type2* base2 = &obj;
+ const base_type1* base1 __attribute__((unused)) = &obj;
+ const base_type2* base2 __attribute__((unused)) = &obj;
// Check for required typedefs
typedef test_type::char_type char_type;
diff --git a/libstdc++-v3/testsuite/22_locale/messages/members/char/1.cc b/libstdc++-v3/testsuite/22_locale/messages/members/char/1.cc
index 5b360b15a21..9a3a1c93ab1 100644
--- a/libstdc++-v3/testsuite/22_locale/messages/members/char/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/messages/members/char/1.cc
@@ -29,7 +29,7 @@ void test01()
typedef std::messages<char>::catalog catalog;
typedef std::messages<char>::string_type string_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// This is defined through CXXFLAGS in scripts/testsuite_flags[.in].
const char* dir = LOCALEDIR;
@@ -44,9 +44,6 @@ void test01()
VERIFY( loc_de != loc_fr );
// cache the messages facets
- const messages<char>& mssg_c = use_facet<messages<char> >(loc_c);
- const messages<char>& mssg_us = use_facet<messages<char> >(loc_us);
- const messages<char>& mssg_fr = use_facet<messages<char> >(loc_fr);
const messages<char>& mssg_de = use_facet<messages<char> >(loc_de);
// catalog open(const string&, const locale&) const;
diff --git a/libstdc++-v3/testsuite/22_locale/messages/members/char/2.cc b/libstdc++-v3/testsuite/22_locale/messages/members/char/2.cc
index 389d3721a1b..c9cae5053f3 100644
--- a/libstdc++-v3/testsuite/22_locale/messages/members/char/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/messages/members/char/2.cc
@@ -29,7 +29,7 @@ void test02()
typedef std::messages<char>::catalog catalog;
typedef std::messages<char>::string_type string_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// This is defined through CXXFLAGS in scripts/testsuite_flags[.in].
const char* dir = LOCALEDIR;
@@ -44,10 +44,7 @@ void test02()
VERIFY( loc_de != loc_fr );
// cache the messages facets
- const messages<char>& mssg_c = use_facet<messages<char> >(loc_c);
- const messages<char>& mssg_us = use_facet<messages<char> >(loc_us);
const messages<char>& mssg_fr = use_facet<messages<char> >(loc_fr);
- const messages<char>& mssg_de = use_facet<messages<char> >(loc_de);
// catalog open(const string&, const locale&) const;
// string_type get(catalog, int, int, const string_type& ) const;
diff --git a/libstdc++-v3/testsuite/22_locale/messages/members/char/3.cc b/libstdc++-v3/testsuite/22_locale/messages/members/char/3.cc
index d4abacc99ed..8d00eb5a882 100644
--- a/libstdc++-v3/testsuite/22_locale/messages/members/char/3.cc
+++ b/libstdc++-v3/testsuite/22_locale/messages/members/char/3.cc
@@ -29,7 +29,7 @@ void test03()
typedef std::messages<char>::catalog catalog;
typedef std::messages<char>::string_type string_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// This is defined through CXXFLAGS in scripts/testsuite_flags[.in].
const char* dir = LOCALEDIR;
@@ -44,10 +44,8 @@ void test03()
VERIFY( loc_de != loc_fr );
// cache the messages facets
- const messages<char>& mssg_c = use_facet<messages<char> >(loc_c);
const messages<char>& mssg_us = use_facet<messages<char> >(loc_us);
const messages<char>& mssg_fr = use_facet<messages<char> >(loc_fr);
- const messages<char>& mssg_de = use_facet<messages<char> >(loc_de);
// catalog open(const string&, const locale&) const;
// string_type get(catalog, int, int, const string_type& ) const;
diff --git a/libstdc++-v3/testsuite/22_locale/messages_byname/1.cc b/libstdc++-v3/testsuite/22_locale/messages_byname/1.cc
index cc8860bef9d..3072383a988 100644
--- a/libstdc++-v3/testsuite/22_locale/messages_byname/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/messages_byname/1.cc
@@ -29,7 +29,7 @@ void test01()
typedef std::messages<char>::catalog catalog;
typedef std::messages<char>::string_type string_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
string str;
// This is defined through CXXFLAGS in scripts/testsuite_flags[.in].
const char* dir = LOCALEDIR;
diff --git a/libstdc++-v3/testsuite/22_locale/money_get/1.cc b/libstdc++-v3/testsuite/22_locale/money_get/1.cc
index 86fcd18b501..f3b7232f630 100644
--- a/libstdc++-v3/testsuite/22_locale/money_get/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/money_get/1.cc
@@ -29,7 +29,7 @@ void test01()
typedef std::money_get<char> test_type;
typedef std::locale::facet base_type;
const test_type& obj = std::use_facet<test_type>(std::locale());
- const base_type* base = &obj;
+ const base_type* base __attribute__((unused)) = &obj;
// Check for required typedefs
typedef test_type::char_type char_type;
diff --git a/libstdc++-v3/testsuite/22_locale/money_get/get/char/1.cc b/libstdc++-v3/testsuite/22_locale/money_get/get/char/1.cc
index ed0d19e46ec..39dca1df909 100644
--- a/libstdc++-v3/testsuite/22_locale/money_get/get/char/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/money_get/get/char/1.cc
@@ -32,7 +32,7 @@ void test01()
typedef money_base::pattern pattern;
typedef istreambuf_iterator<char> iterator_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction
locale loc_c = locale::classic();
@@ -47,12 +47,6 @@ void test01()
// cache the moneypunct facets
typedef moneypunct<char, true> __money_true;
typedef moneypunct<char, false> __money_false;
- const __money_true& monpunct_c_t = use_facet<__money_true>(loc_c);
- const __money_true& monpunct_de_t = use_facet<__money_true>(loc_de);
- const __money_false& monpunct_c_f = use_facet<__money_false>(loc_c);
- const __money_false& monpunct_de_f = use_facet<__money_false>(loc_de);
- const __money_true& monpunct_hk_t = use_facet<__money_true>(loc_hk);
- const __money_false& monpunct_hk_f = use_facet<__money_false>(loc_hk);
// sanity check the data is correct.
const string empty;
diff --git a/libstdc++-v3/testsuite/22_locale/money_get/get/char/11528.cc b/libstdc++-v3/testsuite/22_locale/money_get/get/char/11528.cc
index c4f00f7add9..17825d546b2 100644
--- a/libstdc++-v3/testsuite/22_locale/money_get/get/char/11528.cc
+++ b/libstdc++-v3/testsuite/22_locale/money_get/get/char/11528.cc
@@ -27,7 +27,7 @@ void test01()
using namespace std;
typedef istreambuf_iterator<char> iterator_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
locale loc_us = __gnu_test::try_named_locale("en_US");
diff --git a/libstdc++-v3/testsuite/22_locale/money_get/get/char/2.cc b/libstdc++-v3/testsuite/22_locale/money_get/get/char/2.cc
index ddb2c3f5d6f..422a53340eb 100644
--- a/libstdc++-v3/testsuite/22_locale/money_get/get/char/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/money_get/get/char/2.cc
@@ -32,7 +32,7 @@ void test02()
typedef money_base::pattern pattern;
typedef istreambuf_iterator<char> iterator_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction
locale loc_c = locale::classic();
@@ -47,12 +47,6 @@ void test02()
// cache the moneypunct facets
typedef moneypunct<char, true> __money_true;
typedef moneypunct<char, false> __money_false;
- const __money_true& monpunct_c_t = use_facet<__money_true>(loc_c);
- const __money_true& monpunct_de_t = use_facet<__money_true>(loc_de);
- const __money_false& monpunct_c_f = use_facet<__money_false>(loc_c);
- const __money_false& monpunct_de_f = use_facet<__money_false>(loc_de);
- const __money_true& monpunct_hk_t = use_facet<__money_true>(loc_hk);
- const __money_false& monpunct_hk_f = use_facet<__money_false>(loc_hk);
// sanity check the data is correct.
const string empty;
diff --git a/libstdc++-v3/testsuite/22_locale/money_get/get/char/3.cc b/libstdc++-v3/testsuite/22_locale/money_get/get/char/3.cc
index 91ca66fb64c..5904ee112d8 100644
--- a/libstdc++-v3/testsuite/22_locale/money_get/get/char/3.cc
+++ b/libstdc++-v3/testsuite/22_locale/money_get/get/char/3.cc
@@ -32,7 +32,7 @@ void test03()
typedef money_base::pattern pattern;
typedef istreambuf_iterator<char> iterator_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction
locale loc_c = locale::classic();
@@ -47,12 +47,6 @@ void test03()
// cache the moneypunct facets
typedef moneypunct<char, true> __money_true;
typedef moneypunct<char, false> __money_false;
- const __money_true& monpunct_c_t = use_facet<__money_true>(loc_c);
- const __money_true& monpunct_de_t = use_facet<__money_true>(loc_de);
- const __money_false& monpunct_c_f = use_facet<__money_false>(loc_c);
- const __money_false& monpunct_de_f = use_facet<__money_false>(loc_de);
- const __money_true& monpunct_hk_t = use_facet<__money_true>(loc_hk);
- const __money_false& monpunct_hk_f = use_facet<__money_false>(loc_hk);
// sanity check the data is correct.
const string empty;
@@ -60,12 +54,6 @@ void test03()
// total EPA budget FY 2002
const long double digits1 = 720000000000.0;
- // est. cost, national missile "defense", expressed as a loss in USD 2001
- const long double digits2 = -10000000000000.0;
-
- // input less than frac_digits
- const long double digits4 = -1.0;
-
iterator_type end;
istringstream iss;
iss.imbue(loc_de);
diff --git a/libstdc++-v3/testsuite/22_locale/money_get/get/char/4.cc b/libstdc++-v3/testsuite/22_locale/money_get/get/char/4.cc
index d3c8359b528..a80060aebe0 100644
--- a/libstdc++-v3/testsuite/22_locale/money_get/get/char/4.cc
+++ b/libstdc++-v3/testsuite/22_locale/money_get/get/char/4.cc
@@ -32,7 +32,7 @@ void test04()
typedef money_base::pattern pattern;
typedef istreambuf_iterator<char> iterator_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction
locale loc_c = locale::classic();
@@ -47,22 +47,10 @@ void test04()
// cache the moneypunct facets
typedef moneypunct<char, true> __money_true;
typedef moneypunct<char, false> __money_false;
- const __money_true& monpunct_c_t = use_facet<__money_true>(loc_c);
- const __money_true& monpunct_de_t = use_facet<__money_true>(loc_de);
- const __money_false& monpunct_c_f = use_facet<__money_false>(loc_c);
- const __money_false& monpunct_de_f = use_facet<__money_false>(loc_de);
- const __money_true& monpunct_hk_t = use_facet<__money_true>(loc_hk);
- const __money_false& monpunct_hk_f = use_facet<__money_false>(loc_hk);
// sanity check the data is correct.
const string empty;
- // total EPA budget FY 2002
- const long double digits1 = 720000000000.0;
-
- // est. cost, national missile "defense", expressed as a loss in USD 2001
- const long double digits2 = -10000000000000.0;
-
// input less than frac_digits
const long double digits4 = -1.0;
diff --git a/libstdc++-v3/testsuite/22_locale/money_get/get/char/5.cc b/libstdc++-v3/testsuite/22_locale/money_get/get/char/5.cc
index f886c887ebd..e51d4464de5 100644
--- a/libstdc++-v3/testsuite/22_locale/money_get/get/char/5.cc
+++ b/libstdc++-v3/testsuite/22_locale/money_get/get/char/5.cc
@@ -27,14 +27,13 @@
void test05()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// Check money_get works with other iterators besides streambuf
// input iterators.
typedef string::const_iterator iter_type;
typedef money_get<char, iter_type> mon_get_type;
const ios_base::iostate goodbit = ios_base::goodbit;
- const ios_base::iostate eofbit = ios_base::eofbit;
ios_base::iostate err = goodbit;
const locale loc_c = locale::classic();
const string str = "0.01Eleanor Roosevelt";
diff --git a/libstdc++-v3/testsuite/22_locale/money_get/get/char/6.cc b/libstdc++-v3/testsuite/22_locale/money_get/get/char/6.cc
index f9afb1e1fa4..8c03e8245ff 100644
--- a/libstdc++-v3/testsuite/22_locale/money_get/get/char/6.cc
+++ b/libstdc++-v3/testsuite/22_locale/money_get/get/char/6.cc
@@ -54,7 +54,7 @@ void test06()
using namespace std;
typedef istreambuf_iterator<char> InIt;
- bool test = true;
+ bool test __attribute__((unused)) = true;
locale loc(locale::classic(), new My_money_io);
diff --git a/libstdc++-v3/testsuite/22_locale/money_get/get/char/7.cc b/libstdc++-v3/testsuite/22_locale/money_get/get/char/7.cc
index f275d4e59d4..c21a9dfad74 100644
--- a/libstdc++-v3/testsuite/22_locale/money_get/get/char/7.cc
+++ b/libstdc++-v3/testsuite/22_locale/money_get/get/char/7.cc
@@ -30,7 +30,7 @@
void test07()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
typedef istreambuf_iterator<char> InIt;
InIt iend1, iend2, iend3;
diff --git a/libstdc++-v3/testsuite/22_locale/money_get/get/char/8.cc b/libstdc++-v3/testsuite/22_locale/money_get/get/char/8.cc
index 8c811e99a63..01a93381557 100644
--- a/libstdc++-v3/testsuite/22_locale/money_get/get/char/8.cc
+++ b/libstdc++-v3/testsuite/22_locale/money_get/get/char/8.cc
@@ -68,7 +68,7 @@ void test08()
typedef istreambuf_iterator<char> InIt;
bool intl = false;
- bool test = true;
+ bool test __attribute__((unused)) = true;
ios_base::iostate err;
locale loc_a(locale::classic(), new My_money_io_a);
diff --git a/libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/1.cc
index a3965f79a6a..0a7f90b6366 100644
--- a/libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/1.cc
@@ -32,7 +32,7 @@ void test01()
typedef money_base::pattern pattern;
typedef istreambuf_iterator<wchar_t> iterator_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction
locale loc_c = locale::classic();
@@ -47,12 +47,6 @@ void test01()
// cache the moneypunct facets
typedef moneypunct<wchar_t, true> __money_true;
typedef moneypunct<wchar_t, false> __money_false;
- const __money_true& monpunct_c_t = use_facet<__money_true>(loc_c);
- const __money_true& monpunct_de_t = use_facet<__money_true>(loc_de);
- const __money_false& monpunct_c_f = use_facet<__money_false>(loc_c);
- const __money_false& monpunct_de_f = use_facet<__money_false>(loc_de);
- const __money_true& monpunct_hk_t = use_facet<__money_true>(loc_hk);
- const __money_false& monpunct_hk_f = use_facet<__money_false>(loc_hk);
// sanity check the data is correct.
const wstring empty;
diff --git a/libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/11528.cc b/libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/11528.cc
index 5c0036162fc..8649db41187 100644
--- a/libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/11528.cc
+++ b/libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/11528.cc
@@ -27,7 +27,7 @@ void test01()
using namespace std;
typedef istreambuf_iterator<wchar_t> iterator_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
locale loc_us = __gnu_test::try_named_locale("en_US");
diff --git a/libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/2.cc b/libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/2.cc
index a3959df3218..f59cef7a929 100644
--- a/libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/2.cc
@@ -32,7 +32,7 @@ void test02()
typedef money_base::pattern pattern;
typedef istreambuf_iterator<wchar_t> iterator_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction
locale loc_c = locale::classic();
@@ -47,12 +47,6 @@ void test02()
// cache the moneypunct facets
typedef moneypunct<wchar_t, true> __money_true;
typedef moneypunct<wchar_t, false> __money_false;
- const __money_true& monpunct_c_t = use_facet<__money_true>(loc_c);
- const __money_true& monpunct_de_t = use_facet<__money_true>(loc_de);
- const __money_false& monpunct_c_f = use_facet<__money_false>(loc_c);
- const __money_false& monpunct_de_f = use_facet<__money_false>(loc_de);
- const __money_true& monpunct_hk_t = use_facet<__money_true>(loc_hk);
- const __money_false& monpunct_hk_f = use_facet<__money_false>(loc_hk);
// sanity check the data is correct.
const wstring empty;
diff --git a/libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/3.cc b/libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/3.cc
index 2883e7a4d43..d0c8b06b6f3 100644
--- a/libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/3.cc
+++ b/libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/3.cc
@@ -32,7 +32,7 @@ void test03()
typedef money_base::pattern pattern;
typedef istreambuf_iterator<wchar_t> iterator_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction
locale loc_c = locale::classic();
@@ -47,24 +47,12 @@ void test03()
// cache the moneypunct facets
typedef moneypunct<wchar_t, true> __money_true;
typedef moneypunct<wchar_t, false> __money_false;
- const __money_true& monpunct_c_t = use_facet<__money_true>(loc_c);
- const __money_true& monpunct_de_t = use_facet<__money_true>(loc_de);
- const __money_false& monpunct_c_f = use_facet<__money_false>(loc_c);
- const __money_false& monpunct_de_f = use_facet<__money_false>(loc_de);
- const __money_true& monpunct_hk_t = use_facet<__money_true>(loc_hk);
- const __money_false& monpunct_hk_f = use_facet<__money_false>(loc_hk);
// sanity check the data is correct.
const wstring empty;
// total EPA budget FY 2002
const long double digits1 = 720000000000.0;
-
- // est. cost, national missile "defense", expressed as a loss in USD 2001
- const long double digits2 = -10000000000000.0;
-
- // input less than frac_digits
- const long double digits4 = -1.0;
iterator_type end;
wistringstream iss;
diff --git a/libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/4.cc b/libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/4.cc
index 94c27aa7cf9..8861ce46cf5 100644
--- a/libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/4.cc
+++ b/libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/4.cc
@@ -32,7 +32,7 @@ void test04()
typedef money_base::pattern pattern;
typedef istreambuf_iterator<wchar_t> iterator_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction
locale loc_c = locale::classic();
@@ -47,22 +47,10 @@ void test04()
// cache the moneypunct facets
typedef moneypunct<wchar_t, true> __money_true;
typedef moneypunct<wchar_t, false> __money_false;
- const __money_true& monpunct_c_t = use_facet<__money_true>(loc_c);
- const __money_true& monpunct_de_t = use_facet<__money_true>(loc_de);
- const __money_false& monpunct_c_f = use_facet<__money_false>(loc_c);
- const __money_false& monpunct_de_f = use_facet<__money_false>(loc_de);
- const __money_true& monpunct_hk_t = use_facet<__money_true>(loc_hk);
- const __money_false& monpunct_hk_f = use_facet<__money_false>(loc_hk);
// sanity check the data is correct.
const wstring empty;
- // total EPA budget FY 2002
- const long double digits1 = 720000000000.0;
-
- // est. cost, national missile "defense", expressed as a loss in USD 2001
- const long double digits2 = -10000000000000.0;
-
// input less than frac_digits
const long double digits4 = -1.0;
diff --git a/libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/5.cc b/libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/5.cc
index fd0c53ef313..89b724c0307 100644
--- a/libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/5.cc
+++ b/libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/5.cc
@@ -27,14 +27,13 @@
void test05()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// Check money_get works with other iterators besides streambuf
// input iterators.
typedef wstring::const_iterator iter_type;
typedef money_get<wchar_t, iter_type> mon_get_type;
const ios_base::iostate goodbit = ios_base::goodbit;
- const ios_base::iostate eofbit = ios_base::eofbit;
ios_base::iostate err = goodbit;
const locale loc_c = locale::classic();
const wstring str = L"0.01Eleanor Roosevelt";
diff --git a/libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/6.cc b/libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/6.cc
index 0015cd92ca6..5d40fab761f 100644
--- a/libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/6.cc
+++ b/libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/6.cc
@@ -54,7 +54,7 @@ void test06()
using namespace std;
typedef istreambuf_iterator<wchar_t> InIt;
- bool test = true;
+ bool test __attribute__((unused)) = true;
locale loc(locale::classic(), new My_money_io);
diff --git a/libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/7.cc b/libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/7.cc
index bf8615f1748..c9cf0662e25 100644
--- a/libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/7.cc
+++ b/libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/7.cc
@@ -30,7 +30,7 @@
void test07()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
typedef istreambuf_iterator<wchar_t> InIt;
InIt iend1, iend2, iend3;
diff --git a/libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/8.cc b/libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/8.cc
index ab1de4d3e10..aeaa2573780 100644
--- a/libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/8.cc
+++ b/libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/8.cc
@@ -68,7 +68,7 @@ void test08()
typedef istreambuf_iterator<wchar_t> InIt;
bool intl = false;
- bool test = true;
+ bool test __attribute__((unused)) = true;
ios_base::iostate err;
locale loc_a(locale::classic(), new My_money_io_a);
diff --git a/libstdc++-v3/testsuite/22_locale/money_put/1.cc b/libstdc++-v3/testsuite/22_locale/money_put/1.cc
index e4f27c723db..ed6c58c5408 100644
--- a/libstdc++-v3/testsuite/22_locale/money_put/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/money_put/1.cc
@@ -29,7 +29,7 @@ void test01()
typedef std::money_put<char> test_type;
typedef std::locale::facet base_type;
const test_type& obj = std::use_facet<test_type>(std::locale());
- const base_type* base = &obj;
+ const base_type* base __attribute__((unused)) = &obj;
// Check for required typedefs
typedef test_type::char_type char_type;
diff --git a/libstdc++-v3/testsuite/22_locale/money_put/put/char/1.cc b/libstdc++-v3/testsuite/22_locale/money_put/put/char/1.cc
index 12192f5bcab..2692bb4d196 100644
--- a/libstdc++-v3/testsuite/22_locale/money_put/put/char/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/money_put/put/char/1.cc
@@ -32,7 +32,7 @@ void test01()
typedef money_base::pattern pattern;
typedef ostreambuf_iterator<char> iterator_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction
locale loc_c = locale::classic();
@@ -47,12 +47,6 @@ void test01()
// cache the moneypunct facets
typedef moneypunct<char, true> __money_true;
typedef moneypunct<char, false> __money_false;
- const __money_true& monpunct_c_t = use_facet<__money_true>(loc_c);
- const __money_true& monpunct_de_t = use_facet<__money_true>(loc_de);
- const __money_false& monpunct_c_f = use_facet<__money_false>(loc_c);
- const __money_false& monpunct_de_f = use_facet<__money_false>(loc_de);
- const __money_true& monpunct_hk_t = use_facet<__money_true>(loc_hk);
- const __money_false& monpunct_hk_f = use_facet<__money_false>(loc_hk);
// sanity check the data is correct.
const string empty;
diff --git a/libstdc++-v3/testsuite/22_locale/money_put/put/char/2.cc b/libstdc++-v3/testsuite/22_locale/money_put/put/char/2.cc
index 044ea1174bc..35882b64d5d 100644
--- a/libstdc++-v3/testsuite/22_locale/money_put/put/char/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/money_put/put/char/2.cc
@@ -32,7 +32,7 @@ void test02()
typedef money_base::pattern pattern;
typedef ostreambuf_iterator<char> iterator_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction
locale loc_c = locale::classic();
@@ -47,12 +47,6 @@ void test02()
// cache the moneypunct facets
typedef moneypunct<char, true> __money_true;
typedef moneypunct<char, false> __money_false;
- const __money_true& monpunct_c_t = use_facet<__money_true>(loc_c);
- const __money_true& monpunct_de_t = use_facet<__money_true>(loc_de);
- const __money_false& monpunct_c_f = use_facet<__money_false>(loc_c);
- const __money_false& monpunct_de_f = use_facet<__money_false>(loc_de);
- const __money_true& monpunct_hk_t = use_facet<__money_true>(loc_hk);
- const __money_false& monpunct_hk_f = use_facet<__money_false>(loc_hk);
// sanity check the data is correct.
const string empty;
diff --git a/libstdc++-v3/testsuite/22_locale/money_put/put/char/3.cc b/libstdc++-v3/testsuite/22_locale/money_put/put/char/3.cc
index ead1aff1b72..1a1ca33d7a9 100644
--- a/libstdc++-v3/testsuite/22_locale/money_put/put/char/3.cc
+++ b/libstdc++-v3/testsuite/22_locale/money_put/put/char/3.cc
@@ -32,7 +32,7 @@ void test03()
typedef money_base::pattern pattern;
typedef ostreambuf_iterator<char> iterator_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction
locale loc_c = locale::classic();
@@ -47,24 +47,12 @@ void test03()
// cache the moneypunct facets
typedef moneypunct<char, true> __money_true;
typedef moneypunct<char, false> __money_false;
- const __money_true& monpunct_c_t = use_facet<__money_true>(loc_c);
- const __money_true& monpunct_de_t = use_facet<__money_true>(loc_de);
- const __money_false& monpunct_c_f = use_facet<__money_false>(loc_c);
- const __money_false& monpunct_de_f = use_facet<__money_false>(loc_de);
- const __money_true& monpunct_hk_t = use_facet<__money_true>(loc_hk);
- const __money_false& monpunct_hk_f = use_facet<__money_false>(loc_hk);
// sanity check the data is correct.
const string empty;
// total EPA budget FY 2002
const long double digits1 = 720000000000.0;
-
- // est. cost, national missile "defense", expressed as a loss in USD 2001
- const long double digits2 = -10000000000000.0;
-
- // input less than frac_digits
- const long double digits4 = -1.0;
// cache the money_put facet
ostringstream oss;
diff --git a/libstdc++-v3/testsuite/22_locale/money_put/put/char/4.cc b/libstdc++-v3/testsuite/22_locale/money_put/put/char/4.cc
index 4d4518fb776..0790ac60f4a 100644
--- a/libstdc++-v3/testsuite/22_locale/money_put/put/char/4.cc
+++ b/libstdc++-v3/testsuite/22_locale/money_put/put/char/4.cc
@@ -27,14 +27,13 @@
void test04()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// Check money_put works with other iterators besides streambuf
// output iterators. (As long as output_iterator requirements are met.)
typedef string::iterator iter_type;
typedef money_put<char, iter_type> mon_put_type;
const ios_base::iostate goodbit = ios_base::goodbit;
- const ios_base::iostate eofbit = ios_base::eofbit;
ios_base::iostate err = goodbit;
const locale loc_c = locale::classic();
// woman, art, thief (stole the blues)
diff --git a/libstdc++-v3/testsuite/22_locale/money_put/put/char/5.cc b/libstdc++-v3/testsuite/22_locale/money_put/put/char/5.cc
index 86a006d0023..4554d72c8d5 100644
--- a/libstdc++-v3/testsuite/22_locale/money_put/put/char/5.cc
+++ b/libstdc++-v3/testsuite/22_locale/money_put/put/char/5.cc
@@ -45,7 +45,7 @@ struct My_money_io : public std::moneypunct<char,false>
void test05()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
typedef ostreambuf_iterator<char> OutIt;
locale loc(locale::classic(), new My_money_io);
diff --git a/libstdc++-v3/testsuite/22_locale/money_put/put/char/6.cc b/libstdc++-v3/testsuite/22_locale/money_put/put/char/6.cc
index b663d76bbe2..5177c76744a 100644
--- a/libstdc++-v3/testsuite/22_locale/money_put/put/char/6.cc
+++ b/libstdc++-v3/testsuite/22_locale/money_put/put/char/6.cc
@@ -34,7 +34,7 @@ struct My_money_io_2 : public std::moneypunct<char,false>
void test06()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
typedef ostreambuf_iterator<char> OutIt;
locale loc(locale::classic(), new My_money_io_2);
diff --git a/libstdc++-v3/testsuite/22_locale/money_put/put/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/money_put/put/wchar_t/1.cc
index 942589bb540..f8f97fa691a 100644
--- a/libstdc++-v3/testsuite/22_locale/money_put/put/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/money_put/put/wchar_t/1.cc
@@ -32,7 +32,7 @@ void test01()
typedef money_base::pattern pattern;
typedef ostreambuf_iterator<wchar_t> iterator_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction
locale loc_c = locale::classic();
@@ -47,12 +47,6 @@ void test01()
// cache the moneypunct facets
typedef moneypunct<wchar_t, true> __money_true;
typedef moneypunct<wchar_t, false> __money_false;
- const __money_true& monpunct_c_t = use_facet<__money_true>(loc_c);
- const __money_true& monpunct_de_t = use_facet<__money_true>(loc_de);
- const __money_false& monpunct_c_f = use_facet<__money_false>(loc_c);
- const __money_false& monpunct_de_f = use_facet<__money_false>(loc_de);
- const __money_true& monpunct_hk_t = use_facet<__money_true>(loc_hk);
- const __money_false& monpunct_hk_f = use_facet<__money_false>(loc_hk);
// sanity check the data is correct.
const wstring empty;
diff --git a/libstdc++-v3/testsuite/22_locale/money_put/put/wchar_t/2.cc b/libstdc++-v3/testsuite/22_locale/money_put/put/wchar_t/2.cc
index 2f32240bd3f..f0e7ea1aabe 100644
--- a/libstdc++-v3/testsuite/22_locale/money_put/put/wchar_t/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/money_put/put/wchar_t/2.cc
@@ -32,7 +32,7 @@ void test02()
typedef money_base::pattern pattern;
typedef ostreambuf_iterator<wchar_t> iterator_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction
locale loc_c = locale::classic();
@@ -47,12 +47,6 @@ void test02()
// cache the moneypunct facets
typedef moneypunct<wchar_t, true> __money_true;
typedef moneypunct<wchar_t, false> __money_false;
- const __money_true& monpunct_c_t = use_facet<__money_true>(loc_c);
- const __money_true& monpunct_de_t = use_facet<__money_true>(loc_de);
- const __money_false& monpunct_c_f = use_facet<__money_false>(loc_c);
- const __money_false& monpunct_de_f = use_facet<__money_false>(loc_de);
- const __money_true& monpunct_hk_t = use_facet<__money_true>(loc_hk);
- const __money_false& monpunct_hk_f = use_facet<__money_false>(loc_hk);
// sanity check the data is correct.
const wstring empty;
diff --git a/libstdc++-v3/testsuite/22_locale/money_put/put/wchar_t/3.cc b/libstdc++-v3/testsuite/22_locale/money_put/put/wchar_t/3.cc
index de5f5db79d6..cd79e54d66d 100644
--- a/libstdc++-v3/testsuite/22_locale/money_put/put/wchar_t/3.cc
+++ b/libstdc++-v3/testsuite/22_locale/money_put/put/wchar_t/3.cc
@@ -32,7 +32,7 @@ void test03()
typedef money_base::pattern pattern;
typedef ostreambuf_iterator<wchar_t> iterator_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction
locale loc_c = locale::classic();
@@ -47,24 +47,12 @@ void test03()
// cache the moneypunct facets
typedef moneypunct<wchar_t, true> __money_true;
typedef moneypunct<wchar_t, false> __money_false;
- const __money_true& monpunct_c_t = use_facet<__money_true>(loc_c);
- const __money_true& monpunct_de_t = use_facet<__money_true>(loc_de);
- const __money_false& monpunct_c_f = use_facet<__money_false>(loc_c);
- const __money_false& monpunct_de_f = use_facet<__money_false>(loc_de);
- const __money_true& monpunct_hk_t = use_facet<__money_true>(loc_hk);
- const __money_false& monpunct_hk_f = use_facet<__money_false>(loc_hk);
// sanity check the data is correct.
const wstring empty;
// total EPA budget FY 2002
const long double digits1 = 720000000000.0;
-
- // est. cost, national missile "defense", expressed as a loss in USD 2001
- const long double digits2 = -10000000000000.0;
-
- // input less than frac_digits
- const long double digits4 = -1.0;
// cache the money_put facet
wostringstream oss;
diff --git a/libstdc++-v3/testsuite/22_locale/money_put/put/wchar_t/4.cc b/libstdc++-v3/testsuite/22_locale/money_put/put/wchar_t/4.cc
index 397fd2ea7fe..d288dee60ab 100644
--- a/libstdc++-v3/testsuite/22_locale/money_put/put/wchar_t/4.cc
+++ b/libstdc++-v3/testsuite/22_locale/money_put/put/wchar_t/4.cc
@@ -27,14 +27,13 @@
void test04()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// Check money_put works with other iterators besides streambuf
// output iterators. (As long as output_iterator requirements are met.)
typedef wstring::iterator iter_type;
typedef money_put<wchar_t, iter_type> mon_put_type;
const ios_base::iostate goodbit = ios_base::goodbit;
- const ios_base::iostate eofbit = ios_base::eofbit;
ios_base::iostate err = goodbit;
const locale loc_c = locale::classic();
// woman, art, thief (stole the blues)
diff --git a/libstdc++-v3/testsuite/22_locale/money_put/put/wchar_t/5.cc b/libstdc++-v3/testsuite/22_locale/money_put/put/wchar_t/5.cc
index aa5a18c93d9..40b4092eb5f 100644
--- a/libstdc++-v3/testsuite/22_locale/money_put/put/wchar_t/5.cc
+++ b/libstdc++-v3/testsuite/22_locale/money_put/put/wchar_t/5.cc
@@ -45,7 +45,7 @@ struct My_money_io : public std::moneypunct<wchar_t,false>
void test05()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
typedef ostreambuf_iterator<wchar_t> OutIt;
locale loc(locale::classic(), new My_money_io);
diff --git a/libstdc++-v3/testsuite/22_locale/money_put/put/wchar_t/6.cc b/libstdc++-v3/testsuite/22_locale/money_put/put/wchar_t/6.cc
index d92619c554d..255aa6e56fc 100644
--- a/libstdc++-v3/testsuite/22_locale/money_put/put/wchar_t/6.cc
+++ b/libstdc++-v3/testsuite/22_locale/money_put/put/wchar_t/6.cc
@@ -34,7 +34,7 @@ struct My_money_io_2 : public std::moneypunct<wchar_t,false>
void test06()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
typedef ostreambuf_iterator<wchar_t> OutIt;
locale loc(locale::classic(), new My_money_io_2);
diff --git a/libstdc++-v3/testsuite/22_locale/moneypunct/1.cc b/libstdc++-v3/testsuite/22_locale/moneypunct/1.cc
index 6ab09c61a61..d74b1d69b4d 100644
--- a/libstdc++-v3/testsuite/22_locale/moneypunct/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/moneypunct/1.cc
@@ -30,7 +30,7 @@ void test01()
typedef std::moneypunct<char, true> test_type;
typedef std::locale::facet base_type;
const test_type& obj = std::use_facet<test_type>(std::locale());
- const base_type* base = &obj;
+ const base_type* base __attribute__((unused)) = &obj;
// Check for required typedefs
typedef test_type::char_type char_type;
diff --git a/libstdc++-v3/testsuite/22_locale/moneypunct/2.cc b/libstdc++-v3/testsuite/22_locale/moneypunct/2.cc
index edfefbbf89b..e00a427a2be 100644
--- a/libstdc++-v3/testsuite/22_locale/moneypunct/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/moneypunct/2.cc
@@ -30,7 +30,7 @@ void test02()
typedef std::moneypunct<char, false> test_type;
typedef std::locale::facet base_type;
const test_type& obj = std::use_facet<test_type>(std::locale());
- const base_type* base = &obj;
+ const base_type* base __attribute__((unused)) = &obj;
// Check for required typedefs
typedef test_type::char_type char_type;
diff --git a/libstdc++-v3/testsuite/22_locale/moneypunct/members/char/1.cc b/libstdc++-v3/testsuite/22_locale/moneypunct/members/char/1.cc
index c8d7b994904..7c8ca599f62 100644
--- a/libstdc++-v3/testsuite/22_locale/moneypunct/members/char/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/moneypunct/members/char/1.cc
@@ -30,7 +30,7 @@ void test01()
typedef money_base::part part;
typedef money_base::pattern pattern;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction
locale loc_c = locale::classic();
diff --git a/libstdc++-v3/testsuite/22_locale/moneypunct/members/char/2.cc b/libstdc++-v3/testsuite/22_locale/moneypunct/members/char/2.cc
index 833995ba35a..70e4516d0ff 100644
--- a/libstdc++-v3/testsuite/22_locale/moneypunct/members/char/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/moneypunct/members/char/2.cc
@@ -30,7 +30,7 @@ void test02()
typedef money_base::part part;
typedef money_base::pattern pattern;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction
locale loc_c = locale::classic();
@@ -42,7 +42,6 @@ void test02()
const __money_true& monp_c_t = use_facet<__money_true>(loc_c);
const __money_false& monp_c_f = use_facet<__money_false>(loc_c);
const __money_true& monp_de_t = use_facet<__money_true>(loc_de);
- const __money_false& monp_de_f = use_facet<__money_false>(loc_de);
// quick sanity check for data.
char q1 = monp_c_t.decimal_point();
diff --git a/libstdc++-v3/testsuite/22_locale/moneypunct/members/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/moneypunct/members/wchar_t/1.cc
index 7f0d017bf1d..2d26611c646 100644
--- a/libstdc++-v3/testsuite/22_locale/moneypunct/members/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/moneypunct/members/wchar_t/1.cc
@@ -30,7 +30,7 @@ void test01()
typedef money_base::part part;
typedef money_base::pattern pattern;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction
locale loc_c = locale::classic();
diff --git a/libstdc++-v3/testsuite/22_locale/moneypunct/members/wchar_t/2.cc b/libstdc++-v3/testsuite/22_locale/moneypunct/members/wchar_t/2.cc
index d3bbc39da18..dc1d9706123 100644
--- a/libstdc++-v3/testsuite/22_locale/moneypunct/members/wchar_t/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/moneypunct/members/wchar_t/2.cc
@@ -30,7 +30,7 @@ void test02()
typedef money_base::part part;
typedef money_base::pattern pattern;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction
locale loc_c = locale::classic();
@@ -42,7 +42,6 @@ void test02()
const __money_true& monp_c_t = use_facet<__money_true>(loc_c);
const __money_false& monp_c_f = use_facet<__money_false>(loc_c);
const __money_true& monp_de_t = use_facet<__money_true>(loc_de);
- const __money_false& monp_de_f = use_facet<__money_false>(loc_de);
// quick sanity check for data.
wchar_t q1 = monp_c_t.decimal_point();
diff --git a/libstdc++-v3/testsuite/22_locale/moneypunct_byname/1.cc b/libstdc++-v3/testsuite/22_locale/moneypunct_byname/1.cc
index ea0857a5736..2cdef4b1abc 100644
--- a/libstdc++-v3/testsuite/22_locale/moneypunct_byname/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/moneypunct_byname/1.cc
@@ -29,7 +29,7 @@ void test01()
typedef money_base::part part;
typedef money_base::pattern pattern;
- bool test = true;
+ bool test __attribute__((unused)) = true;
string str;
locale loc_de = __gnu_test::try_named_locale("de_DE");
diff --git a/libstdc++-v3/testsuite/22_locale/num_get/1.cc b/libstdc++-v3/testsuite/22_locale/num_get/1.cc
index 4a3ced974cf..a9081bbf570 100644
--- a/libstdc++-v3/testsuite/22_locale/num_get/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/num_get/1.cc
@@ -29,7 +29,7 @@ void test01()
typedef std::num_get<char> test_type;
typedef std::locale::facet base_type;
const test_type& obj = std::use_facet<test_type>(std::locale());
- const base_type* base = &obj;
+ const base_type* base __attribute__((unused)) = &obj;
// Check for required typedefs
typedef test_type::char_type char_type;
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");
diff --git a/libstdc++-v3/testsuite/22_locale/num_get/get/char/2.cc b/libstdc++-v3/testsuite/22_locale/num_get/get/char/2.cc
index 8d0ce69e254..35200f8762f 100644
--- a/libstdc++-v3/testsuite/22_locale/num_get/get/char/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/num_get/get/char/2.cc
@@ -29,7 +29,7 @@ void test02()
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,31 +41,17 @@ void test02()
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;
double d1 = 1.02345e+308;
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;
// cache the num_get facet
istringstream iss;
diff --git a/libstdc++-v3/testsuite/22_locale/num_get/get/char/3.cc b/libstdc++-v3/testsuite/22_locale/num_get/get/char/3.cc
index 43e16c2d2c4..8048dd39a75 100644
--- a/libstdc++-v3/testsuite/22_locale/num_get/get/char/3.cc
+++ b/libstdc++-v3/testsuite/22_locale/num_get/get/char/3.cc
@@ -29,7 +29,7 @@ void test03()
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,38 +41,18 @@ void test03()
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;
- double d1 = 1.02345e+308;
- 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;
// cache the num_get facet
istringstream iss;
iss.imbue(loc_hk);
const num_get<char>& ng = use_facet<num_get<char> >(iss.getloc());
const ios_base::iostate goodbit = ios_base::goodbit;
- const ios_base::iostate eofbit = ios_base::eofbit;
ios_base::iostate err = ios_base::goodbit;
// HK
diff --git a/libstdc++-v3/testsuite/22_locale/num_get/get/char/4.cc b/libstdc++-v3/testsuite/22_locale/num_get/get/char/4.cc
index aed5fcb4370..f7c4cb044dc 100644
--- a/libstdc++-v3/testsuite/22_locale/num_get/get/char/4.cc
+++ b/libstdc++-v3/testsuite/22_locale/num_get/get/char/4.cc
@@ -29,14 +29,13 @@
void test04()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// Check num_get works with other iterators besides streambuf
// output iterators. (As long as output_iterator requirements are met.)
typedef string::const_iterator iter_type;
typedef num_get<char, iter_type> num_get_type;
const ios_base::iostate goodbit = ios_base::goodbit;
- const ios_base::iostate eofbit = ios_base::eofbit;
ios_base::iostate err = ios_base::goodbit;
const locale loc_c = locale::classic();
const string str("20000106 Elizabeth Durack");
diff --git a/libstdc++-v3/testsuite/22_locale/num_get/get/char/5.cc b/libstdc++-v3/testsuite/22_locale/num_get/get/char/5.cc
index e170931d060..ad43c9d79cf 100644
--- a/libstdc++-v3/testsuite/22_locale/num_get/get/char/5.cc
+++ b/libstdc++-v3/testsuite/22_locale/num_get/get/char/5.cc
@@ -29,7 +29,7 @@ void test05()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
unsigned long ul;
diff --git a/libstdc++-v3/testsuite/22_locale/num_get/get/char/6.cc b/libstdc++-v3/testsuite/22_locale/num_get/get/char/6.cc
index 52722d1acb8..ccf51d3dbd6 100644
--- a/libstdc++-v3/testsuite/22_locale/num_get/get/char/6.cc
+++ b/libstdc++-v3/testsuite/22_locale/num_get/get/char/6.cc
@@ -28,7 +28,7 @@
void test06()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
double d = 0.0;
diff --git a/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/1.cc
index 952651d883c..79fc4291c1c 100644
--- a/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/1.cc
@@ -29,7 +29,7 @@ void test01()
using namespace std;
typedef istreambuf_iterator<wchar_t> 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<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);
-
// sanity check the data is correct.
const wstring 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;
@@ -147,7 +137,6 @@ void test01()
#ifdef _GLIBCXX_USE_LONG_LONG
long long ll1 = 9223372036854775807LL;
- long long ll2 = -9223372036854775807LL;
long long ll;
iss.str(L"9.223.372.036.854.775.807");
diff --git a/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/2.cc b/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/2.cc
index 6f52860f3bf..ec1b338b1da 100644
--- a/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/2.cc
@@ -29,7 +29,7 @@ void test02()
using namespace std;
typedef istreambuf_iterator<wchar_t> iterator_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction
locale loc_c = locale::classic();
@@ -41,31 +41,17 @@ void test02()
VERIFY( loc_hk != loc_de );
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);
-
// sanity check the data is correct.
const wstring 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;
double d1 = 1.02345e+308;
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;
// cache the num_get facet
wistringstream iss;
diff --git a/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/3.cc b/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/3.cc
index 3a775682a2b..fbe887bee90 100644
--- a/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/3.cc
+++ b/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/3.cc
@@ -29,7 +29,7 @@ void test03()
using namespace std;
typedef istreambuf_iterator<wchar_t> iterator_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction
locale loc_c = locale::classic();
@@ -41,38 +41,18 @@ void test03()
VERIFY( loc_hk != loc_de );
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);
-
// sanity check the data is correct.
const wstring 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;
- double d1 = 1.02345e+308;
- 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;
// cache the num_get facet
wistringstream iss;
iss.imbue(loc_hk);
const num_get<wchar_t>& ng = use_facet<num_get<wchar_t> >(iss.getloc());
const ios_base::iostate goodbit = ios_base::goodbit;
- const ios_base::iostate eofbit = ios_base::eofbit;
ios_base::iostate err = ios_base::goodbit;
// HK
diff --git a/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/4.cc b/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/4.cc
index f23aa0f1555..9b956571d02 100644
--- a/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/4.cc
+++ b/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/4.cc
@@ -29,14 +29,13 @@
void test04()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// Check num_get works with other iterators besides streambuf
// output iterators. (As long as output_iterator requirements are met.)
typedef wstring::const_iterator iter_type;
typedef num_get<wchar_t, iter_type> num_get_type;
const ios_base::iostate goodbit = ios_base::goodbit;
- const ios_base::iostate eofbit = ios_base::eofbit;
ios_base::iostate err = ios_base::goodbit;
const locale loc_c = locale::classic();
const wstring str(L"20000106 Elizabeth Durack");
diff --git a/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/5.cc b/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/5.cc
index 09f12be587b..618b74ceaa0 100644
--- a/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/5.cc
+++ b/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/5.cc
@@ -29,7 +29,7 @@ void test05()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
unsigned long ul;
diff --git a/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/6.cc b/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/6.cc
index e2aeb184b23..fac26fe173a 100644
--- a/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/6.cc
+++ b/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/6.cc
@@ -28,7 +28,7 @@
void test06()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
double d = 0.0;
diff --git a/libstdc++-v3/testsuite/22_locale/num_put/1.cc b/libstdc++-v3/testsuite/22_locale/num_put/1.cc
index 2dabe86d830..b520007f740 100644
--- a/libstdc++-v3/testsuite/22_locale/num_put/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/num_put/1.cc
@@ -29,7 +29,7 @@ void test01()
typedef std::num_put<char> test_type;
typedef std::locale::facet base_type;
const test_type& obj = std::use_facet<test_type>(std::locale());
- const base_type* base = &obj;
+ const base_type* base __attribute__((unused)) = &obj;
// Check for required typedefs
typedef test_type::char_type char_type;
diff --git a/libstdc++-v3/testsuite/22_locale/num_put/put/char/1.cc b/libstdc++-v3/testsuite/22_locale/num_put/put/char/1.cc
index cc1759129c6..879337a0d62 100644
--- a/libstdc++-v3/testsuite/22_locale/num_put/put/char/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/num_put/put/char/1.cc
@@ -29,7 +29,7 @@ void test01()
using namespace std;
typedef ostreambuf_iterator<char> 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<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;
string result1;
string 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();
diff --git a/libstdc++-v3/testsuite/22_locale/num_put/put/char/2.cc b/libstdc++-v3/testsuite/22_locale/num_put/put/char/2.cc
index 5f783320c5f..6b6eb3e3f12 100644
--- a/libstdc++-v3/testsuite/22_locale/num_put/put/char/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/num_put/put/char/2.cc
@@ -29,7 +29,7 @@ void test02()
using namespace std;
typedef ostreambuf_iterator<char> iterator_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction
locale loc_c = locale::classic();
@@ -41,28 +41,15 @@ void test02()
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;
string result1;
string 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;
- long double ld2 = 2.2250738585072014e-308;
- const void* cv = &ld1;
// cache the num_put facet
ostringstream oss;
diff --git a/libstdc++-v3/testsuite/22_locale/num_put/put/char/3.cc b/libstdc++-v3/testsuite/22_locale/num_put/put/char/3.cc
index cae87474f29..064e2d79dcb 100644
--- a/libstdc++-v3/testsuite/22_locale/num_put/put/char/3.cc
+++ b/libstdc++-v3/testsuite/22_locale/num_put/put/char/3.cc
@@ -29,7 +29,7 @@ void test03()
using namespace std;
typedef ostreambuf_iterator<char> iterator_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction
locale loc_c = locale::classic();
@@ -41,28 +41,13 @@ void test03()
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;
string result1;
string 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;
- long double ld2 = 2.2250738585072014e-308;
- const void* cv = &ld1;
// cache the num_put facet
ostringstream oss;
diff --git a/libstdc++-v3/testsuite/22_locale/num_put/put/char/4.cc b/libstdc++-v3/testsuite/22_locale/num_put/put/char/4.cc
index 7ce358311fe..e7b139b0270 100644
--- a/libstdc++-v3/testsuite/22_locale/num_put/put/char/4.cc
+++ b/libstdc++-v3/testsuite/22_locale/num_put/put/char/4.cc
@@ -27,15 +27,13 @@
void test04()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// Check num_put works with other iterators besides streambuf
// output iterators. (As long as output_iterator requirements are met.)
typedef string::iterator iter_type;
typedef char_traits<char> traits;
typedef num_put<char, iter_type> num_put_type;
- const ios_base::iostate goodbit = ios_base::goodbit;
- const ios_base::iostate eofbit = ios_base::eofbit;
const locale loc_c = locale::classic();
const string str("1798 Lady Elgin");
const string str2("0 true 0xbffff74c Mary Nisbet");
diff --git a/libstdc++-v3/testsuite/22_locale/num_put/put/char/5.cc b/libstdc++-v3/testsuite/22_locale/num_put/put/char/5.cc
index ce590ea57e8..467ecf9e43f 100644
--- a/libstdc++-v3/testsuite/22_locale/num_put/put/char/5.cc
+++ b/libstdc++-v3/testsuite/22_locale/num_put/put/char/5.cc
@@ -30,7 +30,7 @@
void test05()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// A locale that expects grouping.
locale loc_de = __gnu_test::try_named_locale("de_DE");
diff --git a/libstdc++-v3/testsuite/22_locale/num_put/put/char/6.cc b/libstdc++-v3/testsuite/22_locale/num_put/put/char/6.cc
index 3cc550710bb..4675fc42111 100644
--- a/libstdc++-v3/testsuite/22_locale/num_put/put/char/6.cc
+++ b/libstdc++-v3/testsuite/22_locale/num_put/put/char/6.cc
@@ -28,7 +28,7 @@
void test01()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
ostringstream oss1, oss2;
const num_put<char>& np1 = use_facet<num_put<char> >(oss1.getloc());
diff --git a/libstdc++-v3/testsuite/22_locale/num_put/put/char/7.cc b/libstdc++-v3/testsuite/22_locale/num_put/put/char/7.cc
index d5586cc3ada..8299be9d8ab 100644
--- a/libstdc++-v3/testsuite/22_locale/num_put/put/char/7.cc
+++ b/libstdc++-v3/testsuite/22_locale/num_put/put/char/7.cc
@@ -28,7 +28,7 @@
void test01()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
typedef num_put<char> np_t;
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();
diff --git a/libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/2.cc b/libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/2.cc
index 30faf63f649..563bf96c825 100644
--- a/libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/2.cc
@@ -29,7 +29,7 @@ void test02()
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();
@@ -41,28 +41,15 @@ void test02()
VERIFY( loc_hk != loc_de );
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);
-
// 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;
- long double ld2 = 2.2250738585072014e-308;
- const void* cv = &ld1;
// cache the num_put facet
wostringstream oss;
diff --git a/libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/3.cc b/libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/3.cc
index 5115355969f..3c4728ce46c 100644
--- a/libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/3.cc
+++ b/libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/3.cc
@@ -29,7 +29,7 @@ void test03()
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();
@@ -41,28 +41,13 @@ void test03()
VERIFY( loc_hk != loc_de );
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);
-
// 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;
- long double ld2 = 2.2250738585072014e-308;
- const void* cv = &ld1;
// cache the num_put facet
wostringstream oss;
diff --git a/libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/4.cc b/libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/4.cc
index 1057a85f42d..3fc65175492 100644
--- a/libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/4.cc
+++ b/libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/4.cc
@@ -27,15 +27,13 @@
void test04()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// Check num_put works with other iterators besides streambuf
// output iterators. (As long as output_iterator requirements are met.)
typedef wstring::iterator iter_type;
typedef char_traits<wchar_t> traits;
typedef num_put<wchar_t, iter_type> num_put_type;
- const ios_base::iostate goodbit = ios_base::goodbit;
- const ios_base::iostate eofbit = ios_base::eofbit;
const locale loc_c = locale::classic();
const wstring str(L"1798 Lady Elgin");
const wstring str2(L"0 true 0xbffff74c Mary Nisbet");
diff --git a/libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/5.cc b/libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/5.cc
index ea9e39f231b..51bcbff6c86 100644
--- a/libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/5.cc
+++ b/libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/5.cc
@@ -30,7 +30,7 @@
void test05()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// A locale that expects grouping.
locale loc_de = __gnu_test::try_named_locale("de_DE");
diff --git a/libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/6.cc b/libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/6.cc
index 01733603cfc..88ceb0d9782 100644
--- a/libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/6.cc
+++ b/libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/6.cc
@@ -28,7 +28,7 @@
void test01()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
wostringstream woss1, woss2;
const num_put<wchar_t>& np1 = use_facet<num_put<wchar_t> >(woss1.getloc());
diff --git a/libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/7.cc b/libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/7.cc
index 3b181456f29..d8cee64f68f 100644
--- a/libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/7.cc
+++ b/libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/7.cc
@@ -27,7 +27,7 @@
void test01()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
typedef num_put<wchar_t> npw_t;
diff --git a/libstdc++-v3/testsuite/22_locale/numpunct/1.cc b/libstdc++-v3/testsuite/22_locale/numpunct/1.cc
index f2f94273b9f..955eaef45f1 100644
--- a/libstdc++-v3/testsuite/22_locale/numpunct/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/numpunct/1.cc
@@ -29,7 +29,7 @@ void test01()
typedef std::numpunct<char> test_type;
typedef std::locale::facet base_type;
const test_type& obj = std::use_facet<test_type>(std::locale());
- const base_type* base = &obj;
+ const base_type* base __attribute__((unused)) = &obj;
}
int main()
diff --git a/libstdc++-v3/testsuite/22_locale/numpunct/members/char/1.cc b/libstdc++-v3/testsuite/22_locale/numpunct/members/char/1.cc
index b57ecb21fac..111ad527a74 100644
--- a/libstdc++-v3/testsuite/22_locale/numpunct/members/char/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/numpunct/members/char/1.cc
@@ -27,7 +27,7 @@ void test01()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction
locale loc_c = locale::classic();
@@ -41,9 +41,6 @@ void test01()
// cache the numpunct facets
const numpunct<char>& nump_c = use_facet<numpunct<char> >(loc_c);
- const numpunct<char>& nump_us = use_facet<numpunct<char> >(loc_us);
- const numpunct<char>& nump_fr = use_facet<numpunct<char> >(loc_fr);
- const numpunct<char>& nump_de = use_facet<numpunct<char> >(loc_de);
// sanity check the data is correct.
char dp1 = nump_c.decimal_point();
diff --git a/libstdc++-v3/testsuite/22_locale/numpunct/members/char/2.cc b/libstdc++-v3/testsuite/22_locale/numpunct/members/char/2.cc
index 0ff21db6dce..cbff78e5740 100644
--- a/libstdc++-v3/testsuite/22_locale/numpunct/members/char/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/numpunct/members/char/2.cc
@@ -27,7 +27,7 @@ void test02()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction
locale loc_c = locale::classic();
@@ -46,8 +46,6 @@ void test02()
const numpunct<char>& nump_de = use_facet<numpunct<char> >(loc_de);
// sanity check the data is correct.
- char dp1 = nump_c.decimal_point();
- char th1 = nump_c.thousands_sep();
string g1 = nump_c.grouping();
string t1 = nump_c.truename();
string f1 = nump_c.falsename();
diff --git a/libstdc++-v3/testsuite/22_locale/numpunct/members/char/cache_1.cc b/libstdc++-v3/testsuite/22_locale/numpunct/members/char/cache_1.cc
index 002b0c47e37..57a6de733e8 100644
--- a/libstdc++-v3/testsuite/22_locale/numpunct/members/char/cache_1.cc
+++ b/libstdc++-v3/testsuite/22_locale/numpunct/members/char/cache_1.cc
@@ -47,7 +47,7 @@ void test01()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const string basestr("true");
const string derivedstr("truest");
diff --git a/libstdc++-v3/testsuite/22_locale/numpunct/members/char/cache_2.cc b/libstdc++-v3/testsuite/22_locale/numpunct/members/char/cache_2.cc
index 729e82a64bd..6be2ec04f88 100644
--- a/libstdc++-v3/testsuite/22_locale/numpunct/members/char/cache_2.cc
+++ b/libstdc++-v3/testsuite/22_locale/numpunct/members/char/cache_2.cc
@@ -46,7 +46,7 @@ void test01()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const string empty;
const string basestr("true");
const string derivedstr("truest");
diff --git a/libstdc++-v3/testsuite/22_locale/numpunct/members/pod/1.cc b/libstdc++-v3/testsuite/22_locale/numpunct/members/pod/1.cc
index c0cf534af7b..da6a149d307 100644
--- a/libstdc++-v3/testsuite/22_locale/numpunct/members/pod/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/numpunct/members/pod/1.cc
@@ -36,7 +36,7 @@ namespace std
{
template<>
void
- numpunct<podchar_type>::_M_initialize_numpunct(__c_locale __cloc)
+ numpunct<podchar_type>::_M_initialize_numpunct(__c_locale)
{
if (!_M_data)
_M_data = new __numpunct_cache<podchar_type>;
@@ -92,7 +92,7 @@ void test01()
typedef basic_stringbuf<podchar_type> stringbuf_type;
typedef basic_ostream<podchar_type> ostream_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// Pre-cache sanity check.
const locale loc(locale::classic(), new numpunct<podchar_type>);
diff --git a/libstdc++-v3/testsuite/22_locale/numpunct/members/pod/2.cc b/libstdc++-v3/testsuite/22_locale/numpunct/members/pod/2.cc
index 32b26eda0cd..10b5dedfe0c 100644
--- a/libstdc++-v3/testsuite/22_locale/numpunct/members/pod/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/numpunct/members/pod/2.cc
@@ -37,24 +37,24 @@ namespace std
template<>
bool
ctype<podchar_type>::
- do_is(mask __m, char_type __c) const { return true; }
+ do_is(mask, char_type) const { return true; }
template<>
const podchar_type*
ctype<podchar_type>::
- do_is(const char_type* __lo, const char_type* __hi, mask* __vec) const
+ do_is(const char_type* __lo, const char_type*, mask*) const
{ return __lo; }
template<>
const podchar_type*
ctype<podchar_type>::
- do_scan_is(mask __m, const char_type* __lo, const char_type* __hi) const
+ do_scan_is(mask, const char_type* __lo, const char_type*) const
{ return __lo; }
template<>
const podchar_type*
ctype<podchar_type>::
- do_scan_not(mask __m, const char_type* __lo, const char_type* __hi) const
+ do_scan_not(mask, const char_type* __lo, const char_type*) const
{ return __lo; }
template<>
@@ -66,7 +66,7 @@ namespace std
template<>
const podchar_type*
ctype<podchar_type>::
- do_toupper(char_type* __lo, const char_type* __hi) const
+ do_toupper(char_type*, const char_type* __hi) const
{ return __hi; }
template<>
@@ -78,7 +78,7 @@ namespace std
template<>
const podchar_type*
ctype<podchar_type>::
- do_tolower(char_type* __lo, const char_type* __hi) const
+ do_tolower(char_type*, const char_type* __hi) const
{ return __hi; }
template<>
@@ -114,7 +114,7 @@ namespace std
const podchar_type*
ctype<podchar_type>::
do_narrow(const podchar_type* __lo, const podchar_type* __hi,
- char __dfault, char* __dest) const
+ char, char* __dest) const
{
while (__lo < __hi)
{
@@ -130,7 +130,7 @@ namespace std
template<>
void
- numpunct<podchar_type>::_M_initialize_numpunct(__c_locale __cloc)
+ numpunct<podchar_type>::_M_initialize_numpunct(__c_locale)
{
if (!_M_data)
_M_data = new __numpunct_cache<podchar_type>;
diff --git a/libstdc++-v3/testsuite/22_locale/numpunct/members/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/numpunct/members/wchar_t/1.cc
index ef1c9f0af7d..5d60b6cb7e0 100644
--- a/libstdc++-v3/testsuite/22_locale/numpunct/members/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/numpunct/members/wchar_t/1.cc
@@ -27,7 +27,7 @@ void test01()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction
locale loc_c = locale::classic();
@@ -41,9 +41,6 @@ void test01()
// cache the numpunct facets
const numpunct<wchar_t>& nump_c = use_facet<numpunct<wchar_t> >(loc_c);
- const numpunct<wchar_t>& nump_us = use_facet<numpunct<wchar_t> >(loc_us);
- const numpunct<wchar_t>& nump_fr = use_facet<numpunct<wchar_t> >(loc_fr);
- const numpunct<wchar_t>& nump_de = use_facet<numpunct<wchar_t> >(loc_de);
// sanity check the data is correct.
wchar_t dp1 = nump_c.decimal_point();
diff --git a/libstdc++-v3/testsuite/22_locale/numpunct/members/wchar_t/2.cc b/libstdc++-v3/testsuite/22_locale/numpunct/members/wchar_t/2.cc
index fce8fa2c6d7..94e4b1d341f 100644
--- a/libstdc++-v3/testsuite/22_locale/numpunct/members/wchar_t/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/numpunct/members/wchar_t/2.cc
@@ -27,7 +27,7 @@ void test02()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction
locale loc_c = locale::classic();
@@ -46,8 +46,6 @@ void test02()
const numpunct<wchar_t>& nump_de = use_facet<numpunct<wchar_t> >(loc_de);
// sanity check the data is correct.
- wchar_t dp1 = nump_c.decimal_point();
- wchar_t th1 = nump_c.thousands_sep();
string g1 = nump_c.grouping();
wstring t1 = nump_c.truename();
wstring f1 = nump_c.falsename();
diff --git a/libstdc++-v3/testsuite/22_locale/numpunct/members/wchar_t/cache_1.cc b/libstdc++-v3/testsuite/22_locale/numpunct/members/wchar_t/cache_1.cc
index 0b41e963f50..fc96d05c54f 100644
--- a/libstdc++-v3/testsuite/22_locale/numpunct/members/wchar_t/cache_1.cc
+++ b/libstdc++-v3/testsuite/22_locale/numpunct/members/wchar_t/cache_1.cc
@@ -47,7 +47,7 @@ void test01()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const wstring basestr(L"true");
const wstring derivedstr(L"truest");
diff --git a/libstdc++-v3/testsuite/22_locale/numpunct/members/wchar_t/cache_2.cc b/libstdc++-v3/testsuite/22_locale/numpunct/members/wchar_t/cache_2.cc
index 9a3c4872e5c..09661c9482d 100644
--- a/libstdc++-v3/testsuite/22_locale/numpunct/members/wchar_t/cache_2.cc
+++ b/libstdc++-v3/testsuite/22_locale/numpunct/members/wchar_t/cache_2.cc
@@ -46,7 +46,7 @@ void test01()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
const wstring empty;
const wstring basestr(L"true");
const wstring derivedstr(L"truest");
diff --git a/libstdc++-v3/testsuite/22_locale/numpunct_byname/1.cc b/libstdc++-v3/testsuite/22_locale/numpunct_byname/1.cc
index a3fcaf268f4..171149ec767 100644
--- a/libstdc++-v3/testsuite/22_locale/numpunct_byname/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/numpunct_byname/1.cc
@@ -27,7 +27,7 @@ void test01()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
string str;
locale loc_de = __gnu_test::try_named_locale("de_DE");
diff --git a/libstdc++-v3/testsuite/22_locale/numpunct_byname/2.cc b/libstdc++-v3/testsuite/22_locale/numpunct_byname/2.cc
index 4e6c9d68e62..57e7f301984 100644
--- a/libstdc++-v3/testsuite/22_locale/numpunct_byname/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/numpunct_byname/2.cc
@@ -27,7 +27,7 @@ void test02()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
locale loc_it = __gnu_test::try_named_locale("it_IT");
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/1.cc b/libstdc++-v3/testsuite/22_locale/time_get/1.cc
index 04d4aa84ce0..d6de6422c3a 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/1.cc
@@ -30,8 +30,8 @@ void test01()
typedef std::locale::facet base_type1;
typedef std::time_base base_type2;
const test_type& obj = std::use_facet<test_type>(std::locale());
- const base_type1* base1 = &obj;
- const base_type2* base2 = &obj;
+ const base_type1* base1 __attribute__((unused)) = &obj;
+ const base_type2* base2 __attribute__((unused)) = &obj;
// Check for required typedefs
typedef test_type::char_type char_type;
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/date_order/char/1.cc b/libstdc++-v3/testsuite/22_locale/time_get/date_order/char/1.cc
index f4f0b88502c..4eb2a3149e0 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/date_order/char/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/date_order/char/1.cc
@@ -1,5 +1,4 @@
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-
// Copyright (C) 2001, 2002, 2003 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
@@ -27,7 +26,7 @@
void test01()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
typedef time_base::dateorder dateorder;
typedef istreambuf_iterator<char> iterator_type;
@@ -41,13 +40,7 @@ void test01()
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);
-
- const string empty;
+ const string empty;
// create an ostream-derived object, cache the time_get facet
iterator_type end;
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/date_order/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/time_get/date_order/wchar_t/1.cc
index c9c19dfc29a..3916275ae73 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/date_order/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/date_order/wchar_t/1.cc
@@ -27,7 +27,7 @@
void test01()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
typedef time_base::dateorder dateorder;
typedef istreambuf_iterator<wchar_t> iterator_type;
@@ -41,12 +41,6 @@ void test01()
VERIFY( loc_hk != loc_de );
VERIFY( loc_de != loc_fr );
- // cache the __timepunct facets, for quicker gdb inspection
- const __timepunct<wchar_t>& time_c = use_facet<__timepunct<wchar_t> >(loc_c);
- const __timepunct<wchar_t>& time_de = use_facet<__timepunct<wchar_t> >(loc_de);
- const __timepunct<wchar_t>& time_hk = use_facet<__timepunct<wchar_t> >(loc_hk);
- const __timepunct<wchar_t>& time_fr = use_facet<__timepunct<wchar_t> >(loc_fr);
-
const string empty;
// create an ostream-derived object, cache the time_get facet
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_date/char/1.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_date/char/1.cc
index 7c54955a76e..0aa5ddcc0fa 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_date/char/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_date/char/1.cc
@@ -30,7 +30,7 @@ void test01()
typedef time_base::dateorder dateorder;
typedef istreambuf_iterator<char> iterator_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction and sanity checks.
locale loc_c = locale::classic();
@@ -42,12 +42,6 @@ void test01()
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);
-
const string empty;
// create an ostream-derived object, cache the time_get facet
@@ -61,11 +55,7 @@ void test01()
ios_base::iostate errorstate = good;
// create "C" time objects
- const tm time_bday = { 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 %%";
- const char* date = "%A, the second of %B";
- const char* date_ex = "%Ex";
+ const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
// iter_type
// get_date(iter_type, iter_type, ios_base&, ios_base::iostate&, tm*) const
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_date/char/2.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_date/char/2.cc
index 63d2602272a..9860b43a615 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_date/char/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_date/char/2.cc
@@ -30,7 +30,7 @@ void test02()
typedef time_base::dateorder dateorder;
typedef istreambuf_iterator<char> iterator_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction and sanity checks.
locale loc_c = locale::classic();
@@ -42,12 +42,6 @@ void test02()
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);
-
const string empty;
// create an ostream-derived object, cache the time_get facet
@@ -60,11 +54,7 @@ void test02()
ios_base::iostate errorstate = good;
// create "C" time objects
- const tm time_bday = { 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 %%";
- const char* date = "%A, the second of %B";
- const char* date_ex = "%Ex";
+ const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
// iter_type
// get_date(iter_type, iter_type, ios_base&, ios_base::iostate&, tm*) const
@@ -73,7 +63,6 @@ void test02()
iss.imbue(loc_c);
iss.str("04/04/71");
iterator_type is_it01(iss);
- tm time01;
errorstate = good;
// inspection of named locales, de_DE
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_date/char/3.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_date/char/3.cc
index 249b5e8001f..3c786116bc3 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_date/char/3.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_date/char/3.cc
@@ -27,19 +27,18 @@
void test03()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// Check time_get works with other iterators besides streambuf
// input iterators.
typedef string::const_iterator iter_type;
typedef time_get<char, iter_type> time_get_type;
const ios_base::iostate goodbit = ios_base::goodbit;
- const ios_base::iostate eofbit = ios_base::eofbit;
ios_base::iostate err = goodbit;
const locale loc_c = locale::classic();
// Create "C" time objects
- const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2 };
+ const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2, 0, 0 };
tm tm1;
istringstream iss;
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/1.cc
index aedf8817d8c..4affdf1796a 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/1.cc
@@ -30,7 +30,7 @@ void test01()
typedef time_base::dateorder dateorder;
typedef istreambuf_iterator<wchar_t> iterator_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction and sanity checks.
locale loc_c = locale::classic();
@@ -42,12 +42,6 @@ void test01()
VERIFY( loc_hk != loc_de );
VERIFY( loc_de != loc_fr );
- // cache the __timepunct facets, for quicker gdb inspection
- const __timepunct<wchar_t>& time_c = use_facet<__timepunct<wchar_t> >(loc_c);
- const __timepunct<wchar_t>& time_de = use_facet<__timepunct<wchar_t> >(loc_de);
- const __timepunct<wchar_t>& time_hk = use_facet<__timepunct<wchar_t> >(loc_hk);
- const __timepunct<wchar_t>& time_fr = use_facet<__timepunct<wchar_t> >(loc_fr);
-
const wstring empty;
// create an ostream-derived object, cache the time_get facet
@@ -61,11 +55,7 @@ void test01()
ios_base::iostate errorstate = good;
// create "C" time objects
- const tm time_bday = { 0, 0, 12, 4, 3, 71 };
- const wchar_t* all = L"%a %A %b %B %c %d %H %I %j %m %M %p %s %U "
- L"%w %W %x %X %y %Y %Z %%";
- const wchar_t* date = L"%A, the second of %B";
- const wchar_t* date_ex = L"%Ex";
+ const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
// iter_type
// get_date(iter_type, iter_type, ios_base&, ios_base::iostate&, tm*) const
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/2.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/2.cc
index aff0d1e74e7..59695724138 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/2.cc
@@ -30,7 +30,7 @@ void test02()
typedef time_base::dateorder dateorder;
typedef istreambuf_iterator<wchar_t> iterator_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction and sanity checks.
locale loc_c = locale::classic();
@@ -42,12 +42,6 @@ void test02()
VERIFY( loc_hk != loc_de );
VERIFY( loc_de != loc_fr );
- // cache the __timepunct facets, for quicker gdb inspection
- const __timepunct<wchar_t>& time_c = use_facet<__timepunct<wchar_t> >(loc_c);
- const __timepunct<wchar_t>& time_de = use_facet<__timepunct<wchar_t> >(loc_de);
- const __timepunct<wchar_t>& time_hk = use_facet<__timepunct<wchar_t> >(loc_hk);
- const __timepunct<wchar_t>& time_fr = use_facet<__timepunct<wchar_t> >(loc_fr);
-
const wstring empty;
// create an ostream-derived object, cache the time_get facet
@@ -60,11 +54,7 @@ void test02()
ios_base::iostate errorstate = good;
// create "C" time objects
- const tm time_bday = { 0, 0, 12, 4, 3, 71 };
- const wchar_t* all = L"%a %A %b %B %c %d %H %I %j %m %M %p %s %U "
- L"%w %W %x %X %y %Y %Z %%";
- const wchar_t* date = L"%A, the second of %B";
- const wchar_t* date_ex = L"%Ex";
+ const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
// iter_type
// get_date(iter_type, iter_type, ios_base&, ios_base::iostate&, tm*) const
@@ -73,7 +63,6 @@ void test02()
iss.imbue(loc_c);
iss.str(L"04/04/71");
iterator_type is_it01(iss);
- tm time01;
errorstate = good;
// inspection of named locales, de_DE
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/3.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/3.cc
index b02049fcb46..6b4facc99f0 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/3.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/3.cc
@@ -27,19 +27,18 @@
void test03()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// Check time_get works with other iterators besides streambuf
// input iterators.
typedef wstring::const_iterator iter_type;
typedef time_get<wchar_t, iter_type> time_get_type;
const ios_base::iostate goodbit = ios_base::goodbit;
- const ios_base::iostate eofbit = ios_base::eofbit;
ios_base::iostate err = goodbit;
const locale loc_c = locale::classic();
// Create "C" time objects
- const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2 };
+ const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2, 0, 0 };
tm tm1;
istringstream iss;
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/1.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/1.cc
index 17f52a56385..cf948c3d0d5 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/1.cc
@@ -33,7 +33,7 @@ void test01()
const ios_base::iostate good = ios_base::goodbit;
ios_base::iostate errorstate = good;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction and sanity checks.
locale loc_c = locale::classic();
@@ -45,14 +45,8 @@ void test01()
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 "C" time objects
- const tm time_bday = { 0, 0, 12, 4, 3, 71 };
+ const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
// iter_type
// get_monthname(iter_type, iter_type, ios_base&,
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/2.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/2.cc
index f9d79a43440..5f183b59fd5 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/2.cc
@@ -30,7 +30,7 @@ void test02()
typedef time_base::dateorder dateorder;
typedef istreambuf_iterator<char> iterator_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction and sanity checks.
locale loc_c = locale::classic();
@@ -42,13 +42,7 @@ void test02()
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);
-
- const tm time_bday = { 0, 0, 12, 4, 3, 71 };
+ const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
const string empty;
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/3.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/3.cc
index c876f5c364b..970e4319706 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/3.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/3.cc
@@ -27,19 +27,17 @@
void test03()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// Check time_get works with other iterators besides streambuf
// input iterators.
typedef string::const_iterator iter_type;
typedef time_get<char, iter_type> time_get_type;
const ios_base::iostate goodbit = ios_base::goodbit;
- const ios_base::iostate eofbit = ios_base::eofbit;
ios_base::iostate err = goodbit;
const locale loc_c = locale::classic();
// Create "C" time objects
- const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2 };
tm tm1;
istringstream iss;
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc
index 0b86d74f996..47f5c48188a 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc
@@ -33,7 +33,7 @@ void test01()
const ios_base::iostate good = ios_base::goodbit;
ios_base::iostate errorstate = good;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction and sanity checks.
locale loc_c = locale::classic();
@@ -45,14 +45,8 @@ void test01()
VERIFY( loc_hk != loc_de );
VERIFY( loc_de != loc_fr );
- // cache the __timepunct facets, for quicker gdb inspection
- const __timepunct<wchar_t>& time_c = use_facet<__timepunct<wchar_t> >(loc_c);
- const __timepunct<wchar_t>& time_de = use_facet<__timepunct<wchar_t> >(loc_de);
- const __timepunct<wchar_t>& time_hk = use_facet<__timepunct<wchar_t> >(loc_hk);
- const __timepunct<wchar_t>& time_fr = use_facet<__timepunct<wchar_t> >(loc_fr);
-
// create "C" time objects
- const tm time_bday = { 0, 0, 12, 4, 3, 71 };
+ const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
// iter_type
// get_monthname(iter_type, iter_type, ios_base&,
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc
index 63689eefca3..af861cb7bfe 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc
@@ -30,7 +30,7 @@ void test02()
typedef time_base::dateorder dateorder;
typedef istreambuf_iterator<wchar_t> iterator_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction and sanity checks.
locale loc_c = locale::classic();
@@ -42,13 +42,7 @@ void test02()
VERIFY( loc_hk != loc_de );
VERIFY( loc_de != loc_fr );
- // cache the __timepunct facets, for quicker gdb inspection
- const __timepunct<wchar_t>& time_c = use_facet<__timepunct<wchar_t> >(loc_c);
- const __timepunct<wchar_t>& time_de = use_facet<__timepunct<wchar_t> >(loc_de);
- const __timepunct<wchar_t>& time_hk = use_facet<__timepunct<wchar_t> >(loc_hk);
- const __timepunct<wchar_t>& time_fr = use_facet<__timepunct<wchar_t> >(loc_fr);
-
- const tm time_bday = { 0, 0, 12, 4, 3, 71 };
+ const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
const wstring empty;
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/3.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/3.cc
index 5cb2b651a9c..24007fa3621 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/3.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/3.cc
@@ -27,19 +27,17 @@
void test03()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// Check time_get works with other iterators besides streambuf
// input iterators.
typedef wstring::const_iterator iter_type;
typedef time_get<wchar_t, iter_type> time_get_type;
const ios_base::iostate goodbit = ios_base::goodbit;
- const ios_base::iostate eofbit = ios_base::eofbit;
ios_base::iostate err = goodbit;
const locale loc_c = locale::classic();
// Create "C" time objects
- const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2 };
tm tm1;
istringstream iss;
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_time/char/1.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_time/char/1.cc
index 1517fe2e138..c3b3bb1c015 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_time/char/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_time/char/1.cc
@@ -27,7 +27,7 @@
void test01()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
typedef time_base::dateorder dateorder;
typedef istreambuf_iterator<char> iterator_type;
@@ -41,12 +41,6 @@ void test01()
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);
-
const string empty;
// create an ostream-derived object, cache the time_get facet
@@ -59,11 +53,7 @@ void test01()
ios_base::iostate errorstate = good;
// create "C" time objects
- const tm time_bday = { 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 %%";
- const char* date = "%A, the second of %B";
- const char* date_ex = "%Ex";
+ const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
// 2
// iter_type
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_time/char/2.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_time/char/2.cc
index 9b307d7535c..7341274182e 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_time/char/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_time/char/2.cc
@@ -27,7 +27,7 @@
void test02()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
typedef time_base::dateorder dateorder;
typedef istreambuf_iterator<char> iterator_type;
@@ -41,14 +41,8 @@ void test02()
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);
-
const string empty;
- const tm time_bday = { 0, 0, 12, 4, 3, 71 };
+ const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
// create an ostream-derived object, cache the time_get facet
iterator_type end;
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_time/char/3.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_time/char/3.cc
index 01a06cacc28..d04ebdb7214 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_time/char/3.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_time/char/3.cc
@@ -27,19 +27,18 @@
void test03()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// Check time_get works with other iterators besides streambuf
// input iterators.
typedef string::const_iterator iter_type;
typedef time_get<char, iter_type> time_get_type;
const ios_base::iostate goodbit = ios_base::goodbit;
- const ios_base::iostate eofbit = ios_base::eofbit;
ios_base::iostate err = goodbit;
const locale loc_c = locale::classic();
// Create "C" time objects
- const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2 };
+ const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2, 0, 0 };
tm tm1;
istringstream iss;
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/1.cc
index 00ee21e680a..bc9b3a12734 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/1.cc
@@ -27,7 +27,7 @@
void test01()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
typedef time_base::dateorder dateorder;
typedef istreambuf_iterator<wchar_t> iterator_type;
@@ -41,12 +41,6 @@ void test01()
VERIFY( loc_hk != loc_de );
VERIFY( loc_de != loc_fr );
- // cache the __timepunct facets, for quicker gdb inspection
- const __timepunct<wchar_t>& time_c = use_facet<__timepunct<wchar_t> >(loc_c);
- const __timepunct<wchar_t>& time_de = use_facet<__timepunct<wchar_t> >(loc_de);
- const __timepunct<wchar_t>& time_hk = use_facet<__timepunct<wchar_t> >(loc_hk);
- const __timepunct<wchar_t>& time_fr = use_facet<__timepunct<wchar_t> >(loc_fr);
-
const wstring empty;
// create an ostream-derived object, cache the time_get facet
@@ -59,11 +53,7 @@ void test01()
ios_base::iostate errorstate = good;
// create "C" time objects
- const tm time_bday = { 0, 0, 12, 4, 3, 71 };
- const wchar_t* all = L"%a %A %b %B %c %d %H %I %j %m %M %p %s %U "
- L"%w %W %x %X %y %Y %Z %%";
- const wchar_t* date = L"%A, the second of %B";
- const wchar_t* date_ex = L"%Ex";
+ const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
// 2
// iter_type
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/2.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/2.cc
index a412cf01011..8c75a6fd76c 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/2.cc
@@ -27,7 +27,7 @@
void test02()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
typedef time_base::dateorder dateorder;
typedef istreambuf_iterator<wchar_t> iterator_type;
@@ -41,14 +41,8 @@ void test02()
VERIFY( loc_hk != loc_de );
VERIFY( loc_de != loc_fr );
- // cache the __timepunct facets, for quicker gdb inspection
- const __timepunct<wchar_t>& time_c = use_facet<__timepunct<wchar_t> >(loc_c);
- const __timepunct<wchar_t>& time_de = use_facet<__timepunct<wchar_t> >(loc_de);
- const __timepunct<wchar_t>& time_hk = use_facet<__timepunct<wchar_t> >(loc_hk);
- const __timepunct<wchar_t>& time_fr = use_facet<__timepunct<wchar_t> >(loc_fr);
-
const wstring empty;
- const tm time_bday = { 0, 0, 12, 4, 3, 71 };
+ const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
// create an ostream-derived object, cache the time_get facet
iterator_type end;
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/3.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/3.cc
index bb9c2e0b46f..f9ebf1bd0bf 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/3.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/3.cc
@@ -27,19 +27,18 @@
void test03()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// Check time_get works with other iterators besides streambuf
// input iterators.
typedef wstring::const_iterator iter_type;
typedef time_get<wchar_t, iter_type> time_get_type;
const ios_base::iostate goodbit = ios_base::goodbit;
- const ios_base::iostate eofbit = ios_base::eofbit;
ios_base::iostate err = goodbit;
const locale loc_c = locale::classic();
// Create "C" time objects
- const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2 };
+ const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2, 0, 0 };
tm tm1;
wistringstream iss;
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/1.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/1.cc
index ecbe8ecc2d8..993592158e4 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/1.cc
@@ -30,7 +30,7 @@ void test01()
typedef time_base::dateorder dateorder;
typedef istreambuf_iterator<char> iterator_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction and sanity checks.
locale loc_c = locale::classic();
@@ -42,12 +42,6 @@ void test01()
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);
-
const string empty;
// create an ostream-derived object, cache the time_get facet
@@ -61,11 +55,7 @@ void test01()
ios_base::iostate errorstate = good;
// create "C" time objects
- const tm time_bday = { 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 %%";
- const char* date = "%A, the second of %B";
- const char* date_ex = "%Ex";
+ const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
// iter_type
// get_weekday(iter_type, iter_type, ios_base&,
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/2.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/2.cc
index e423be62572..93151dfa324 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/2.cc
@@ -30,7 +30,7 @@ void test02()
typedef time_base::dateorder dateorder;
typedef istreambuf_iterator<char> iterator_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction and sanity checks.
locale loc_c = locale::classic();
@@ -42,12 +42,6 @@ void test02()
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);
-
const string empty;
// create an ostream-derived object, cache the time_get facet
@@ -60,7 +54,7 @@ void test02()
ios_base::iostate errorstate = good;
// create "C" time objects
- const tm time_bday = { 0, 0, 12, 4, 3, 71 };
+ const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
// inspection of named locales, de_DE
iss.imbue(loc_de);
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/3.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/3.cc
index 59dde862a35..09a969a1f1d 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/3.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/3.cc
@@ -27,19 +27,18 @@
void test03()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// Check time_get works with other iterators besides streambuf
// input iterators.
typedef string::const_iterator iter_type;
typedef time_get<char, iter_type> time_get_type;
const ios_base::iostate goodbit = ios_base::goodbit;
- const ios_base::iostate eofbit = ios_base::eofbit;
ios_base::iostate err = goodbit;
const locale loc_c = locale::classic();
// Create "C" time objects
- const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2 };
+ const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2, 0, 0 };
tm tm1;
istringstream iss;
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc
index dca85d24fd2..065b13cf788 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc
@@ -30,7 +30,7 @@ void test01()
typedef time_base::dateorder dateorder;
typedef istreambuf_iterator<wchar_t> iterator_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction and sanity checks.
locale loc_c = locale::classic();
@@ -42,12 +42,6 @@ void test01()
VERIFY( loc_hk != loc_de );
VERIFY( loc_de != loc_fr );
- // cache the __timepunct facets, for quicker gdb inspection
- const __timepunct<wchar_t>& time_c = use_facet<__timepunct<wchar_t> >(loc_c);
- const __timepunct<wchar_t>& time_de = use_facet<__timepunct<wchar_t> >(loc_de);
- const __timepunct<wchar_t>& time_hk = use_facet<__timepunct<wchar_t> >(loc_hk);
- const __timepunct<wchar_t>& time_fr = use_facet<__timepunct<wchar_t> >(loc_fr);
-
const wstring empty;
// create an ostream-derived object, cache the time_get facet
@@ -61,11 +55,7 @@ void test01()
ios_base::iostate errorstate = good;
// create "C" time objects
- const tm time_bday = { 0, 0, 12, 4, 3, 71 };
- const wchar_t* all = L"%a %A %b %B %c %d %H %I %j %m %M %p %s %U "
- L"%w %W %x %X %y %Y %Z %%";
- const wchar_t* date = L"%A, the second of %B";
- const wchar_t* date_ex = L"%Ex";
+ const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
// iter_type
// get_weekday(iter_type, iter_type, ios_base&,
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc
index 1ca267440e7..1bf98971214 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc
@@ -30,7 +30,7 @@ void test02()
typedef time_base::dateorder dateorder;
typedef istreambuf_iterator<wchar_t> iterator_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction and sanity checks.
locale loc_c = locale::classic();
@@ -42,12 +42,6 @@ void test02()
VERIFY( loc_hk != loc_de );
VERIFY( loc_de != loc_fr );
- // cache the __timepunct facets, for quicker gdb inspection
- const __timepunct<wchar_t>& time_c = use_facet<__timepunct<wchar_t> >(loc_c);
- const __timepunct<wchar_t>& time_de = use_facet<__timepunct<wchar_t> >(loc_de);
- const __timepunct<wchar_t>& time_hk = use_facet<__timepunct<wchar_t> >(loc_hk);
- const __timepunct<wchar_t>& time_fr = use_facet<__timepunct<wchar_t> >(loc_fr);
-
const wstring empty;
// create an ostream-derived object, cache the time_get facet
@@ -60,7 +54,7 @@ void test02()
ios_base::iostate errorstate = good;
// create "C" time objects
- const tm time_bday = { 0, 0, 12, 4, 3, 71 };
+ const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
// inspection of named locales, de_DE
iss.imbue(loc_de);
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/3.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/3.cc
index eab0343be37..83b8579f270 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/3.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/3.cc
@@ -27,19 +27,18 @@
void test03()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// Check time_get works with other iterators besides streambuf
// input iterators.
typedef wstring::const_iterator iter_type;
typedef time_get<wchar_t, iter_type> time_get_type;
const ios_base::iostate goodbit = ios_base::goodbit;
- const ios_base::iostate eofbit = ios_base::eofbit;
ios_base::iostate err = goodbit;
const locale loc_c = locale::classic();
// Create "C" time objects
- const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2 };
+ const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2, 0, 0 };
tm tm1;
wistringstream iss;
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_year/char/1.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_year/char/1.cc
index d0aea858ae7..1ae3d4ee3fc 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_year/char/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_year/char/1.cc
@@ -30,7 +30,7 @@ void test01()
typedef time_base::dateorder dateorder;
typedef istreambuf_iterator<char> iterator_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction and sanity checks.
locale loc_c = locale::classic();
@@ -42,12 +42,6 @@ void test01()
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);
-
const string empty;
// create an ostream-derived object, cache the time_get facet
@@ -61,11 +55,7 @@ void test01()
ios_base::iostate errorstate = good;
// create "C" time objects
- const tm time_bday = { 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 %%";
- const char* date = "%A, the second of %B";
- const char* date_ex = "%Ex";
+ const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
// iter_type
// get_year(iter_type, iter_type, ios_base&, ios_base::iostate&, tm*) const
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_year/char/3.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_year/char/3.cc
index 1c38fcb3884..4efb3ac6500 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_year/char/3.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_year/char/3.cc
@@ -27,19 +27,18 @@
void test03()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// Check time_get works with other iterators besides streambuf
// input iterators.
typedef string::const_iterator iter_type;
typedef time_get<char, iter_type> time_get_type;
const ios_base::iostate goodbit = ios_base::goodbit;
- const ios_base::iostate eofbit = ios_base::eofbit;
ios_base::iostate err = goodbit;
const locale loc_c = locale::classic();
// Create "C" time objects
- const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2 };
+ const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2, 0, 0 };
tm tm1;
istringstream iss;
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_year/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_year/wchar_t/1.cc
index f8158957272..5aa77c9519f 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_year/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_year/wchar_t/1.cc
@@ -30,7 +30,7 @@ void test01()
typedef time_base::dateorder dateorder;
typedef istreambuf_iterator<wchar_t> iterator_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// basic construction and sanity checks.
locale loc_c = locale::classic();
@@ -42,12 +42,6 @@ void test01()
VERIFY( loc_hk != loc_de );
VERIFY( loc_de != loc_fr );
- // cache the __timepunct facets, for quicker gdb inspection
- const __timepunct<wchar_t>& time_c = use_facet<__timepunct<wchar_t> >(loc_c);
- const __timepunct<wchar_t>& time_de = use_facet<__timepunct<wchar_t> >(loc_de);
- const __timepunct<wchar_t>& time_hk = use_facet<__timepunct<wchar_t> >(loc_hk);
- const __timepunct<wchar_t>& time_fr = use_facet<__timepunct<wchar_t> >(loc_fr);
-
const wstring empty;
// create an ostream-derived object, cache the time_get facet
@@ -61,11 +55,7 @@ void test01()
ios_base::iostate errorstate = good;
// create "C" time objects
- const tm time_bday = { 0, 0, 12, 4, 3, 71 };
- const wchar_t* all = L"%a %A %b %B %c %d %H %I %j %m %M %p %s %U "
- L"%w %W %x %X %y %Y %Z %%";
- const wchar_t* date = L"%A, the second of %B";
- const wchar_t* date_ex = L"%Ex";
+ const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
// iter_type
// get_year(iter_type, iter_type, ios_base&, ios_base::iostate&, tm*) const
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_year/wchar_t/3.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_year/wchar_t/3.cc
index 0f61392df09..8377b463f2d 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_year/wchar_t/3.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_year/wchar_t/3.cc
@@ -27,19 +27,18 @@
void test03()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// Check time_get works with other iterators besides streambuf
// input iterators.
typedef wstring::const_iterator iter_type;
typedef time_get<wchar_t, iter_type> time_get_type;
const ios_base::iostate goodbit = ios_base::goodbit;
- const ios_base::iostate eofbit = ios_base::eofbit;
ios_base::iostate err = goodbit;
const locale loc_c = locale::classic();
// Create "C" time objects
- const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2 };
+ const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2, 0, 0 };
tm tm1;
istringstream iss;
diff --git a/libstdc++-v3/testsuite/22_locale/time_put/1.cc b/libstdc++-v3/testsuite/22_locale/time_put/1.cc
index a1ce9ac60fa..0606521abe5 100644
--- a/libstdc++-v3/testsuite/22_locale/time_put/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_put/1.cc
@@ -29,7 +29,7 @@ void test01()
typedef std::time_put<char> test_type;
typedef std::locale::facet base_type;
const test_type& obj = std::use_facet<test_type>(std::locale());
- const base_type* base = &obj;
+ const base_type* base __attribute__((unused)) = &obj;
// Check for required typedefs
typedef test_type::char_type char_type;
diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/char/1.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/char/1.cc
index b547034f7a0..471806cea5f 100644
--- a/libstdc++-v3/testsuite/22_locale/time_put/put/char/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_put/put/char/1.cc
@@ -29,14 +29,10 @@ void test01()
using namespace std;
typedef ostreambuf_iterator<char> iterator_type;
- 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 %%";
- const char* date = "%A, the second of %B";
- const char* date_ex = "%Ex";
+ tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
// basic construction and sanity checks.
locale loc_c = locale::classic();
@@ -48,12 +44,6 @@ void test01()
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;
diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/char/10.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/char/10.cc
index 82d00538ed8..c637b829d61 100644
--- a/libstdc++-v3/testsuite/22_locale/time_put/put/char/10.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_put/put/char/10.cc
@@ -27,7 +27,7 @@
void test10()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// Check time_put works with other iterators besides streambuf
// output iterators. (As long as output_iterator requirements are met.)
@@ -41,7 +41,6 @@ void test10()
const string x(50, 'x'); // have to have allocated string!
string res;
const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2 };
- const char* date = "%X, %A, the second of %B, %Y";
ostringstream oss;
oss.imbue(locale(loc_c, new time_put_type));
diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/char/2.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/char/2.cc
index eb844f16209..c09c11ec608 100644
--- a/libstdc++-v3/testsuite/22_locale/time_put/put/char/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_put/put/char/2.cc
@@ -29,14 +29,10 @@ void test02()
using namespace std;
typedef ostreambuf_iterator<char> iterator_type;
- 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 %%";
- const char* date = "%A, the second of %B";
- const char* date_ex = "%Ex";
+ tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
// basic construction and sanity checks.
locale loc_c = locale::classic();
@@ -48,12 +44,6 @@ void test02()
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;
diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/char/3.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/char/3.cc
index 522a899ef38..12633742505 100644
--- a/libstdc++-v3/testsuite/22_locale/time_put/put/char/3.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_put/put/char/3.cc
@@ -29,14 +29,10 @@ void test03()
using namespace std;
typedef ostreambuf_iterator<char> iterator_type;
- 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 %%";
- const char* date = "%A, the second of %B";
- const char* date_ex = "%Ex";
+ tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
// basic construction and sanity checks.
locale loc_c = locale::classic();
@@ -48,12 +44,6 @@ void test03()
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;
diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/char/4.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/char/4.cc
index 8c9b1e0f492..3a99df30979 100644
--- a/libstdc++-v3/testsuite/22_locale/time_put/put/char/4.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_put/put/char/4.cc
@@ -29,14 +29,10 @@ void test04()
using namespace std;
typedef ostreambuf_iterator<char> iterator_type;
- 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 %%";
- const char* date = "%A, the second of %B";
- const char* date_ex = "%Ex";
+ tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
// basic construction and sanity checks.
locale loc_c = locale::classic();
@@ -48,12 +44,6 @@ void test04()
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;
diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/char/5.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/char/5.cc
index 9376987050e..64ca142fa09 100644
--- a/libstdc++-v3/testsuite/22_locale/time_put/put/char/5.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_put/put/char/5.cc
@@ -30,12 +30,10 @@ void test05()
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 test05()
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;
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;
diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/char/7.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/char/7.cc
index 1f37a24a16f..e8aeea2e623 100644
--- a/libstdc++-v3/testsuite/22_locale/time_put/put/char/7.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_put/put/char/7.cc
@@ -30,12 +30,10 @@ void test07()
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";
@@ -50,12 +48,6 @@ void test07()
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;
diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/char/8.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/char/8.cc
index b047ed96547..b940f2aa0c4 100644
--- a/libstdc++-v3/testsuite/22_locale/time_put/put/char/8.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_put/put/char/8.cc
@@ -30,12 +30,10 @@ void test08()
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 test08()
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;
diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/char/9.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/char/9.cc
index 42cfb34b053..9e43b85fc8e 100644
--- a/libstdc++-v3/testsuite/22_locale/time_put/put/char/9.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_put/put/char/9.cc
@@ -27,7 +27,7 @@
void test09()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// Check time_put works with other iterators besides streambuf
// output iterators. (As long as output_iterator requirements are met.)
diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/1.cc
index c6f36b732f0..9f1b11d76aa 100644
--- a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/1.cc
@@ -29,14 +29,10 @@ void test01()
using namespace std;
typedef ostreambuf_iterator<wchar_t> iterator_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// create "C" time objects
- tm time1 = { 0, 0, 12, 4, 3, 71 };
- const wchar_t* all = L"%a %A %b %B %c %d %H %I %j %m %M %p %s %U "
- L"%w %W %x %X %y %Y %Z %%";
- const wchar_t* date = L"%A, the second of %B";
- const wchar_t* date_ex = L"%Ex";
+ tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
// basic construction and sanity checks.
locale loc_c = locale::classic();
@@ -48,12 +44,6 @@ void test01()
VERIFY( loc_hk != loc_de );
VERIFY( loc_de != loc_fr );
- // cache the __timepunct facets, for quicker gdb inspection
- const __timepunct<wchar_t>& time_c = use_facet<__timepunct<wchar_t> >(loc_c);
- const __timepunct<wchar_t>& time_de = use_facet<__timepunct<wchar_t> >(loc_de);
- const __timepunct<wchar_t>& time_hk = use_facet<__timepunct<wchar_t> >(loc_hk);
- const __timepunct<wchar_t>& time_fr = use_facet<__timepunct<wchar_t> >(loc_fr);
-
// create an ostream-derived object, cache the time_put facet
const wstring empty;
wostringstream oss;
diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/10.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/10.cc
index 9cd5db73a5f..c16555f89ee 100644
--- a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/10.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/10.cc
@@ -27,7 +27,7 @@
void test10()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// Check time_put works with other iterators besides streambuf
// output iterators. (As long as output_iterator requirements are met.)
@@ -41,7 +41,6 @@ void test10()
const wstring x(50, 'x'); // have to have allocated wstring!
wstring res;
const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2 };
- const wchar_t* date = L"%X, %A, the second of %B, %Y";
wostringstream oss;
oss.imbue(locale(loc_c, new time_put_type));
diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/2.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/2.cc
index 67ce4a344d1..62751ffc457 100644
--- a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/2.cc
@@ -29,14 +29,10 @@ void test02()
using namespace std;
typedef ostreambuf_iterator<wchar_t> iterator_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// create "C" time objects
- tm time1 = { 0, 0, 12, 4, 3, 71 };
- const wchar_t* all = L"%a %A %b %B %c %d %H %I %j %m %M %p %s %U "
- L"%w %W %x %X %y %Y %Z %%";
- const wchar_t* date = L"%A, the second of %B";
- const wchar_t* date_ex = L"%Ex";
+ tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
// basic construction and sanity checks.
locale loc_c = locale::classic();
@@ -48,12 +44,6 @@ void test02()
VERIFY( loc_hk != loc_de );
VERIFY( loc_de != loc_fr );
- // cache the __timepunct facets, for quicker gdb inspection
- const __timepunct<wchar_t>& time_c = use_facet<__timepunct<wchar_t> >(loc_c);
- const __timepunct<wchar_t>& time_de = use_facet<__timepunct<wchar_t> >(loc_de);
- const __timepunct<wchar_t>& time_hk = use_facet<__timepunct<wchar_t> >(loc_hk);
- const __timepunct<wchar_t>& time_fr = use_facet<__timepunct<wchar_t> >(loc_fr);
-
// create an ostream-derived object, cache the time_put facet
const wstring empty;
wostringstream oss;
diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/3.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/3.cc
index c0ecf6acef3..06d51d96297 100644
--- a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/3.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/3.cc
@@ -29,14 +29,10 @@ void test03()
using namespace std;
typedef ostreambuf_iterator<wchar_t> iterator_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// create "C" time objects
- tm time1 = { 0, 0, 12, 4, 3, 71 };
- const wchar_t* all = L"%a %A %b %B %c %d %H %I %j %m %M %p %s %U "
- L"%w %W %x %X %y %Y %Z %%";
- const wchar_t* date = L"%A, the second of %B";
- const wchar_t* date_ex = L"%Ex";
+ tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
// basic construction and sanity checks.
locale loc_c = locale::classic();
@@ -48,12 +44,6 @@ void test03()
VERIFY( loc_hk != loc_de );
VERIFY( loc_de != loc_fr );
- // cache the __timepunct facets, for quicker gdb inspection
- const __timepunct<wchar_t>& time_c = use_facet<__timepunct<wchar_t> >(loc_c);
- const __timepunct<wchar_t>& time_de = use_facet<__timepunct<wchar_t> >(loc_de);
- const __timepunct<wchar_t>& time_hk = use_facet<__timepunct<wchar_t> >(loc_hk);
- const __timepunct<wchar_t>& time_fr = use_facet<__timepunct<wchar_t> >(loc_fr);
-
// create an ostream-derived object, cache the time_put facet
const wstring empty;
wostringstream oss;
diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/4.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/4.cc
index 6206ff57734..4a8b27b5adf 100644
--- a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/4.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/4.cc
@@ -29,14 +29,10 @@ void test04()
using namespace std;
typedef ostreambuf_iterator<wchar_t> iterator_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// create "C" time objects
- tm time1 = { 0, 0, 12, 4, 3, 71 };
- const wchar_t* all = L"%a %A %b %B %c %d %H %I %j %m %M %p %s %U "
- L"%w %W %x %X %y %Y %Z %%";
- const wchar_t* date = L"%A, the second of %B";
- const wchar_t* date_ex = L"%Ex";
+ tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
// basic construction and sanity checks.
locale loc_c = locale::classic();
@@ -48,12 +44,6 @@ void test04()
VERIFY( loc_hk != loc_de );
VERIFY( loc_de != loc_fr );
- // cache the __timepunct facets, for quicker gdb inspection
- const __timepunct<wchar_t>& time_c = use_facet<__timepunct<wchar_t> >(loc_c);
- const __timepunct<wchar_t>& time_de = use_facet<__timepunct<wchar_t> >(loc_de);
- const __timepunct<wchar_t>& time_hk = use_facet<__timepunct<wchar_t> >(loc_hk);
- const __timepunct<wchar_t>& time_fr = use_facet<__timepunct<wchar_t> >(loc_fr);
-
// create an ostream-derived object, cache the time_put facet
const wstring empty;
wostringstream oss;
diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/5.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/5.cc
index b017d420549..0a65f3a4d43 100644
--- a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/5.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/5.cc
@@ -30,12 +30,10 @@ void test05()
typedef ostreambuf_iterator<wchar_t> iterator_type;
typedef char_traits<wchar_t> traits;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// create "C" time objects
- tm time1 = { 0, 0, 12, 4, 3, 71 };
- const wchar_t* all = L"%a %A %b %B %c %d %H %I %j %m %M %p %s %U "
- L"%w %W %x %X %y %Y %Z %%";
+ tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
const wchar_t* date = L"%A, the second of %B";
const wchar_t* date_ex = L"%Ex";
@@ -49,12 +47,6 @@ void test05()
VERIFY( loc_hk != loc_de );
VERIFY( loc_de != loc_fr );
- // cache the __timepunct facets, for quicker gdb inspection
- const __timepunct<wchar_t>& time_c = use_facet<__timepunct<wchar_t> >(loc_c);
- const __timepunct<wchar_t>& time_de = use_facet<__timepunct<wchar_t> >(loc_de);
- const __timepunct<wchar_t>& time_hk = use_facet<__timepunct<wchar_t> >(loc_hk);
- const __timepunct<wchar_t>& time_fr = use_facet<__timepunct<wchar_t> >(loc_fr);
-
// create an ostream-derived object, cache the time_put facet
const wstring empty;
wostringstream oss;
diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/6.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/6.cc
index 8bb5b237d66..f4755bd1962 100644
--- a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/6.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/6.cc
@@ -30,12 +30,10 @@ void test06()
typedef ostreambuf_iterator<wchar_t> iterator_type;
typedef char_traits<wchar_t> traits;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// create "C" time objects
- tm time1 = { 0, 0, 12, 4, 3, 71 };
- const wchar_t* all = L"%a %A %b %B %c %d %H %I %j %m %M %p %s %U "
- L"%w %W %x %X %y %Y %Z %%";
+ tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
const wchar_t* date = L"%A, the second of %B";
const wchar_t* date_ex = L"%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<wchar_t>& time_c = use_facet<__timepunct<wchar_t> >(loc_c);
- const __timepunct<wchar_t>& time_de = use_facet<__timepunct<wchar_t> >(loc_de);
- const __timepunct<wchar_t>& time_hk = use_facet<__timepunct<wchar_t> >(loc_hk);
- const __timepunct<wchar_t>& time_fr = use_facet<__timepunct<wchar_t> >(loc_fr);
-
// create an ostream-derived object, cache the time_put facet
const wstring empty;
wostringstream oss;
diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/7.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/7.cc
index 354285e35ca..99faf619886 100644
--- a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/7.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/7.cc
@@ -30,12 +30,10 @@ void test07()
typedef ostreambuf_iterator<wchar_t> iterator_type;
typedef char_traits<wchar_t> traits;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// create "C" time objects
- tm time1 = { 0, 0, 12, 4, 3, 71 };
- const wchar_t* all = L"%a %A %b %B %c %d %H %I %j %m %M %p %s %U "
- L"%w %W %x %X %y %Y %Z %%";
+ tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
const wchar_t* date = L"%A, the second of %B";
const wchar_t* date_ex = L"%Ex";
@@ -49,12 +47,6 @@ void test07()
VERIFY( loc_hk != loc_de );
VERIFY( loc_de != loc_fr );
- // cache the __timepunct facets, for quicker gdb inspection
- const __timepunct<wchar_t>& time_c = use_facet<__timepunct<wchar_t> >(loc_c);
- const __timepunct<wchar_t>& time_de = use_facet<__timepunct<wchar_t> >(loc_de);
- const __timepunct<wchar_t>& time_hk = use_facet<__timepunct<wchar_t> >(loc_hk);
- const __timepunct<wchar_t>& time_fr = use_facet<__timepunct<wchar_t> >(loc_fr);
-
// create an ostream-derived object, cache the time_put facet
const wstring empty;
wostringstream oss;
diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/8.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/8.cc
index 6367a8edd27..0a7ff3c4372 100644
--- a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/8.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/8.cc
@@ -30,12 +30,10 @@ void test08()
typedef ostreambuf_iterator<wchar_t> iterator_type;
typedef char_traits<wchar_t> traits;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// create "C" time objects
- tm time1 = { 0, 0, 12, 4, 3, 71 };
- const wchar_t* all = L"%a %A %b %B %c %d %H %I %j %m %M %p %s %U "
- L"%w %W %x %X %y %Y %Z %%";
+ tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
const wchar_t* date = L"%A, the second of %B";
const wchar_t* date_ex = L"%Ex";
@@ -49,12 +47,6 @@ void test08()
VERIFY( loc_hk != loc_de );
VERIFY( loc_de != loc_fr );
- // cache the __timepunct facets, for quicker gdb inspection
- const __timepunct<wchar_t>& time_c = use_facet<__timepunct<wchar_t> >(loc_c);
- const __timepunct<wchar_t>& time_de = use_facet<__timepunct<wchar_t> >(loc_de);
- const __timepunct<wchar_t>& time_hk = use_facet<__timepunct<wchar_t> >(loc_hk);
- const __timepunct<wchar_t>& time_fr = use_facet<__timepunct<wchar_t> >(loc_fr);
-
// create an ostream-derived object, cache the time_put facet
const wstring empty;
wostringstream oss;
diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/9.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/9.cc
index 072e4c38e02..ca6676acf63 100644
--- a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/9.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/9.cc
@@ -27,7 +27,7 @@
void test09()
{
using namespace std;
- bool test = true;
+ bool test __attribute__((unused)) = true;
// Check time_put works with other iterators besides streambuf
// output iterators. (As long as output_iterator requirements are met.)