Yet another bit-field bug
[oota-llvm.git] / test / C++Frontend / 2003-08-28-ForwardType.cpp
1
2 // Default placement versions of operator new.
3 inline void* operator new(unsigned, void* __p) throw();
4
5
6 template<typename _CharT>
7 struct stdio_filebuf 
8 {  stdio_filebuf();
9   
10 };
11
12 extern stdio_filebuf<char> buf_cout;
13
14 void foo() {
15   // Create stream buffers for the standard streams and use
16   // those buffers without destroying and recreating the
17   // streams.
18   new (&buf_cout) stdio_filebuf<char>();
19
20 }