libstdc++: Adjust std::from_chars negative tests
authorJonathan Wakely <jwakely@redhat.com>
Tue, 23 Jun 2020 11:20:26 +0000 (12:20 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 23 Jun 2020 11:20:26 +0000 (12:20 +0100)
commitb81d4f1e3d6a519afa20d84304f12ee639fde944
tree0ecfcd7e0ec14dc1ba22da0c4e2d582b3be52f12
parentefc16503ca10bc0e934e0bace5777500e4dc757a
libstdc++: Adjust std::from_chars negative tests

Also test with an enumeration type. Move the dg-error directives outside
the #if block, because DejaGnu would process them whether or not wchar_t
support is present.

libstdc++-v3/ChangeLog:

* testsuite/20_util/from_chars/1_c++20_neg.cc: Check enumeration
type.
* testsuite/20_util/from_chars/1_neg.cc: Likewise. Move dg-error
directives outside preprocessor condition.
libstdc++-v3/testsuite/20_util/from_chars/1_c++20_neg.cc
libstdc++-v3/testsuite/20_util/from_chars/1_neg.cc