+2018-10-16 Jonathan Wakely <jwakely@redhat.com>
+
+ PR libstdc++/87618
+ * config/abi/pre/gnu.ver: Fix typos in patterns for basic_stringbuf.
+ * testsuite/27_io/basic_stringbuf/cons/char/default.cc: Disable
+ optimisation to check constructor definition can be linked to.
+ * testsuite/27_io/basic_stringbuf/cons/wchar_t/default.cc: Likewise.
+
2018-10-15 Jonathan Wakely <jwakely@redhat.com>
* testsuite/22_locale/numpunct/members/char/3.cc: Adjust test to
_ZNSt13runtime_erroraSEOS_;
# Default constructors for stringstreams
- _ZNSt15basic_stringbuf[cw]St11char_traitsI[cw]ESaI[cw]EEC[12]Ev;
+ _ZNSt15basic_stringbufI[cw]St11char_traitsI[cw]ESaI[cw]EEC[12]Ev;
_ZNSt18basic_stringstreamI[cw]St11char_traitsI[cw]ESaI[cw]EEC[12]Ev;
_ZNSt19basic_[io]stringstreamI[cw]St11char_traitsI[cw]ESaI[cw]EEC[12]Ev;
- _ZNSt7__cxx1115basic_stringbuf[cw]St11char_traitsI[cw]ESaI[cw]EEC[12]Ev;
+ _ZNSt7__cxx1115basic_stringbufI[cw]St11char_traitsI[cw]ESaI[cw]EEC[12]Ev;
_ZNSt7__cxx1118basic_stringstreamI[cw]St11char_traitsI[cw]ESaI[cw]EEC[12]Ev;
_ZNSt7__cxx1119basic_[io]stringstreamI[cw]St11char_traitsI[cw]ESaI[cw]EEC[12]Ev;
// C++11 27.8.2.1 basic_stringbuf constructors [stringbuf.cons]
+// { dg-options "-O0" }
// { dg-do run { target c++11 } }
#include <sstream>
test.operator()<std::stringbuf>();
}
-int main()
+void test02()
+{
+ // PR libstdc++/87618
+ // Compiled without optimisation to check this constructor is exported.
+ std::stringbuf sb;
+}
+
+int main()
{
test01();
+ test02();
}
// C++11 27.8.2.1 basic_stringbuf constructors [stringbuf.cons]
+// { dg-options "-O0" }
// { dg-do run { target c++11 } }
#include <sstream>
test.operator()<std::wstringbuf>();
}
-int main()
+void test02()
+{
+ // PR libstdc++/87618
+ // Compiled without optimisation to check this constructor is exported.
+ std::wstringbuf sb;
+}
+
+int main()
{
test01();
+ test02();
}