llvm.org GIT mirror llvm / 7905a6e
NEw testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8199 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 17 years ago
1 changed file(s) with 20 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0
1 // Default placement versions of operator new.
2 inline void* operator new(unsigned, void* __p) throw();
3
4
5 template
6 struct stdio_filebuf
7 { stdio_filebuf();
8
9 };
10
11 extern stdio_filebuf buf_cout;
12
13 void foo() {
14 // Create stream buffers for the standard streams and use
15 // those buffers without destroying and recreating the
16 // streams.
17 new (&buf_cout) stdio_filebuf();
18
19 }