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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.law/] [weak.C] - Blame information for rev 305

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do link { target i?86-*-linux* x86_64-*-linux* } }
2
// { dg-require-effective-target static }
3
// { dg-options "-static" }
4
// Bug: g++ fails to instantiate operator<<.
5
 
6
// libc-5.4.xx has __IO_putc in its static C library, which can conflict
7
// with the copy of __IO_putc in the libstdc++ library built by egcs.
8
#include 
9
#include 
10
#include 
11
 
12
std::istream x (0);
13
 
14
main () {
15
  x.get();
16
  std::putc(0, 0);
17
  std::fgets(0, 0, 0);
18
  x.get((char*) 0, 0);
19
}
20
 

powered by: WebSVN 2.1.0

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