libstdc++: Only use dynamic_cast in tests when RTTI is enabled
authorJonathan Wakely <jwakely@redhat.com>
Fri, 12 Feb 2021 11:09:00 +0000 (11:09 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 12 Feb 2021 14:30:13 +0000 (14:30 +0000)
commite9c310521182c9359cf23fa9b0c5057b35e8b53f
tree3dc916f89fc7df5e30f2b254deab557694c739fa
parent14b554c462d5b6450fa24afb7ba55435ebd4b46f
libstdc++: Only use dynamic_cast in tests when RTTI is enabled

libstdc++-v3/ChangeLog:

* testsuite/27_io/basic_istringstream/rdbuf/char/2832.cc: Use
static_cast when RTTI is disabled.
* testsuite/27_io/basic_istringstream/rdbuf/wchar_t/2832.cc:
Likewise.
* testsuite/27_io/basic_ostringstream/rdbuf/char/2832.cc:
Likewise.
* testsuite/27_io/basic_ostringstream/rdbuf/wchar_t/2832.cc:
Likewise.
* testsuite/27_io/basic_stringstream/str/char/2.cc:
Likewise.
* testsuite/27_io/basic_stringstream/str/wchar_t/2.cc:
Likewise.
libstdc++-v3/testsuite/27_io/basic_istringstream/rdbuf/char/2832.cc
libstdc++-v3/testsuite/27_io/basic_istringstream/rdbuf/wchar_t/2832.cc
libstdc++-v3/testsuite/27_io/basic_ostringstream/rdbuf/char/2832.cc
libstdc++-v3/testsuite/27_io/basic_ostringstream/rdbuf/wchar_t/2832.cc
libstdc++-v3/testsuite/27_io/basic_stringstream/str/char/2.cc
libstdc++-v3/testsuite/27_io/basic_stringstream/str/wchar_t/2.cc