[llvm-commits] CVS: llvm/test/Regression/C++Frontend/CompileFail/2003-08-28-ForwardType.cpp

Chris Lattner lattner at cs.uiuc.edu
Thu Aug 28 19:31:03 PDT 2003


Changes in directory llvm/test/Regression/C++Frontend/CompileFail:

2003-08-28-ForwardType.cpp added (r1.1)

---
Log message:

NEw testcase


---
Diffs of the changes:

Index: llvm/test/Regression/C++Frontend/CompileFail/2003-08-28-ForwardType.cpp
diff -c /dev/null llvm/test/Regression/C++Frontend/CompileFail/2003-08-28-ForwardType.cpp:1.1
*** /dev/null	Thu Aug 28 19:30:05 2003
--- llvm/test/Regression/C++Frontend/CompileFail/2003-08-28-ForwardType.cpp	Thu Aug 28 19:29:55 2003
***************
*** 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>();
+ 
+ }





More information about the llvm-commits mailing list