mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-23 16:19:34 +08:00
* g++.old-deja/g++.law/weak1.C: New test.
From-SVN: r25520
This commit is contained in:
parent
813861ff57
commit
d3aca1d612
@ -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...
|
||||
|
20
gcc/testsuite/g++.old-deja/g++.law/weak.C
Normal file
20
gcc/testsuite/g++.old-deja/g++.law/weak.C
Normal file
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user