Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.law / weak.C
blobea07afe4c42d7ced50056f9c117032cffeb78164
1 // { dg-do link { target i?86-*-linux* x86_64-*-linux* } }
2 // { dg-options "-static" }
3 // Bug: g++ fails to instantiate operator<<.
5 // libc-5.4.xx has __IO_putc in its static C library, which can conflict
6 // with the copy of __IO_putc in the libstdc++ library built by egcs.
7 #include <iostream>
8 #include <streambuf>
9 #include <cstdio>
11 std::istream x (0);
13 main () {
14   x.get();
15   std::putc(0, 0);
16   std::fgets(0, 0, 0); 
17   x.get((char*) 0, 0);