[llvm-commits] CVS: llvm/test/Regression/C++Frontend/2004-06-08-LateTemplateInstantiation.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Jun 8 02:16:01 PDT 2004


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

2004-06-08-LateTemplateInstantiation.cpp added (r1.1)

---
Log message:

New testcase for PR355: http://llvm.cs.uiuc.edu/PR355 


---
Diffs of the changes:  (+17 -0)

Index: llvm/test/Regression/C++Frontend/2004-06-08-LateTemplateInstantiation.cpp
diff -c /dev/null llvm/test/Regression/C++Frontend/2004-06-08-LateTemplateInstantiation.cpp:1.1
*** /dev/null	Tue Jun  8 02:11:24 2004
--- llvm/test/Regression/C++Frontend/2004-06-08-LateTemplateInstantiation.cpp	Tue Jun  8 02:11:14 2004
***************
*** 0 ****
--- 1,17 ----
+ 
+ 
+ template<typename Ty>
+ struct normal_iterator {  
+   int FIELD;
+ };
+ 
+ void foo(normal_iterator<int>);
+ normal_iterator<int> baz();
+ 
+ void bar() {
+   foo(baz());
+ }
+ 
+ void *bar2() {
+   return (void*)foo;
+ }





More information about the llvm-commits mailing list