From 2917ca87f786dbe6edd081b2660cf1d3da90b2c7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 8 Jun 2004 07:11:14 +0000 Subject: [PATCH] New testcase for PR355 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14062 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../2004-06-08-LateTemplateInstantiation.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/C++Frontend/2004-06-08-LateTemplateInstantiation.cpp diff --git a/test/C++Frontend/2004-06-08-LateTemplateInstantiation.cpp b/test/C++Frontend/2004-06-08-LateTemplateInstantiation.cpp new file mode 100644 index 00000000000..5d04d23ef2f --- /dev/null +++ b/test/C++Frontend/2004-06-08-LateTemplateInstantiation.cpp @@ -0,0 +1,17 @@ + + +template +struct normal_iterator { + int FIELD; +}; + +void foo(normal_iterator); +normal_iterator baz(); + +void bar() { + foo(baz()); +} + +void *bar2() { + return (void*)foo; +} -- 2.34.1