1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

NEw testcase

llvm-svn: 8199
This commit is contained in:
Chris Lattner 2003-08-29 00:29:55 +00:00
parent 03e444c960
commit 4fb9814f05

View File

@ -0,0 +1,20 @@
// Default placement versions of operator new.
inline void* operator new(unsigned, void* __p) throw();
template<typename _CharT>
struct stdio_filebuf
{ stdio_filebuf();
};
extern stdio_filebuf<char> buf_cout;
void foo() {
// Create stream buffers for the standard streams and use
// those buffers without destroying and recreating the
// streams.
new (&buf_cout) stdio_filebuf<char>();
}