OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.law/] [weak.C] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
// { dg-do link { target i?86-*-linux* x86_64-*-linux* } }
2
// { dg-options "-static" }
3
// Bug: g++ fails to instantiate operator<<.
4
 
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 
8
#include 
9
#include 
10
 
11
std::istream x (0);
12
 
13
main () {
14
  x.get();
15
  std::putc(0, 0);
16
  std::fgets(0, 0, 0);
17
  x.get((char*) 0, 0);
18
}
19
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.