10096.cc: Add weak bits.
authorBenjamin Kosnik <bkoz@redhat.com>
Mon, 12 May 2003 16:10:55 +0000 (16:10 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Mon, 12 May 2003 16:10:55 +0000 (16:10 +0000)
2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>

* testsuite/27_io/basic_filebuf/underflow/10096.cc: Add weak bits.

From-SVN: r66724

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/27_io/basic_filebuf/underflow/10096.cc

index ca97f01..5089138 100644 (file)
@@ -1,3 +1,7 @@
+2003-05-12  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * testsuite/27_io/basic_filebuf/underflow/10096.cc: Add weak bits.
+
 2003-05-11  Phil Edwards  <pme@gcc.gnu.org>
 
        * testsuite/Makefile.am:  Properly quote /both/ LD_RUN_PATHs.
index 8dd2434..588a625 100644 (file)
@@ -63,6 +63,13 @@ void test01()
   VERIFY( fb.sgetc() == MyTraits::eof() );
 }
 
+#if !__GXX_WEAK__
+// Explicitly instantiate for systems with no COMDAT or weak support.
+template 
+  std::basic_filebuf<char, MyTraits>::int_type
+  std::basic_filebuf<char, MyTraits>::_S_pback_size;
+#endif
+
 int main()
 {
   test01();