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:
parent
03e444c960
commit
4fb9814f05
20
test/Regression/C++Frontend/2003-08-28-ForwardType.cpp
Normal file
20
test/Regression/C++Frontend/2003-08-28-ForwardType.cpp
Normal 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>();
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user