New testcase for PR355
authorChris Lattner <sabre@nondot.org>
Tue, 8 Jun 2004 07:11:14 +0000 (07:11 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 8 Jun 2004 07:11:14 +0000 (07:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14062 91177308-0d34-0410-b5e6-96231b3b80d8

test/C++Frontend/2004-06-08-LateTemplateInstantiation.cpp [new file with mode: 0644]

diff --git a/test/C++Frontend/2004-06-08-LateTemplateInstantiation.cpp b/test/C++Frontend/2004-06-08-LateTemplateInstantiation.cpp
new file mode 100644 (file)
index 0000000..5d04d23
--- /dev/null
@@ -0,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;
+}