* g++.old-deja/g++.law/weak1.C: New test.
authorJeffrey A Law <law@cygnus.com>
Mon, 1 Mar 1999 22:30:22 +0000 (22:30 +0000)
committerJeff Law <law@gcc.gnu.org>
Mon, 1 Mar 1999 22:30:22 +0000 (15:30 -0700)
From-SVN: r25520

gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.law/weak.C [new file with mode: 0644]

index 4c912a0ebc2862d3bc9698694ec6fd8de09fb567..6b1e205d21b83f17e6e0b303544344c24e41492f 100644 (file)
@@ -1,3 +1,7 @@
+Mon Mar  1 23:29:14 1999  Jeffrey A Law  (law@cygnus.com)
+
+       * g++.old-deja/g++.law/weak1.C: New test.
+
 1999-02-28 17:59 -0500  Zack Weinberg  <zack@rabi.columbia.edu>
 
        * gcc.c-torture/execute/990119-1.c: Renamed to...
diff --git a/gcc/testsuite/g++.old-deja/g++.law/weak.C b/gcc/testsuite/g++.old-deja/g++.law/weak.C
new file mode 100644 (file)
index 0000000..98465ac
--- /dev/null
@@ -0,0 +1,20 @@
+// Bug: g++ fails to instantiate operator<<.
+// Build don't run:
+// Special g++ Options: -static
+// Skip if not target: i?86-*-linux*
+
+// libc-5.4.xx has __IO_putc in its static C library, which can conflict
+// with the copy of __IO_putc in the libstdc++ library built by egcs.
+#include <iostream.h>
+#include <streambuf.h>
+
+istream x;
+extern "C" int putc(), fgets();
+
+main () {
+  x.get();
+  putc();
+  fgets(); 
+  x.gets(0, 0);
+}
+