Adding RUN lines.
[oota-llvm.git] / test / C++Frontend / 2003-08-28-ForwardType.cpp
1 // RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
2
3 // XFAIL: darwin,sun
4 // Default placement versions of operator new.
5 inline void* operator new(unsigned, void* __p) throw();
6
7
8 template<typename _CharT>
9 struct stdio_filebuf 
10 {  stdio_filebuf();
11   
12 };
13
14 extern stdio_filebuf<char> buf_cout;
15
16 void foo() {
17   // Create stream buffers for the standard streams and use
18   // those buffers without destroying and recreating the
19   // streams.
20   new (&buf_cout) stdio_filebuf<char>();
21
22 }