Tie small stuff to non-small by default on ELF platforms
[oota-llvm.git] / test / FrontendC++ / 2003-08-28-ForwardType.cpp
1 // RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
2
3 // Default placement versions of operator new.
4 #include <new>
5
6 void* operator new(size_t, void* __p) throw();
7
8
9 template<typename _CharT>
10 struct stdio_filebuf
11 {  stdio_filebuf();
12
13 };
14
15 extern stdio_filebuf<char> buf_cout;
16
17 void foo() {
18   // Create stream buffers for the standard streams and use
19   // those buffers without destroying and recreating the
20   // streams.
21   new (&buf_cout) stdio_filebuf<char>();
22
23 }