1*c87b03e5Sespie // Bug: g++ fails to instantiate operator<<.
2*c87b03e5Sespie // Build don't run:
3*c87b03e5Sespie // Special g++ Options: -static
4*c87b03e5Sespie // Skip if not target: i?86-*-linux*
5*c87b03e5Sespie 
6*c87b03e5Sespie // libc-5.4.xx has __IO_putc in its static C library, which can conflict
7*c87b03e5Sespie // with the copy of __IO_putc in the libstdc++ library built by egcs.
8*c87b03e5Sespie #include <iostream>
9*c87b03e5Sespie #include <streambuf>
10*c87b03e5Sespie #include <cstdio>
11*c87b03e5Sespie 
12*c87b03e5Sespie std::istream x (0);
13*c87b03e5Sespie 
main()14*c87b03e5Sespie main () {
15*c87b03e5Sespie   x.get();
16*c87b03e5Sespie   std::putc(0, 0);
17*c87b03e5Sespie   std::fgets(0, 0, 0);
18*c87b03e5Sespie   x.get((char*) 0, 0);
19*c87b03e5Sespie }
20*c87b03e5Sespie 
21