From: Chris Lattner Date: Tue, 8 Jun 2004 07:11:14 +0000 (+0000) Subject: New testcase for PR355 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=2917ca87f786dbe6edd081b2660cf1d3da90b2c7;p=oota-llvm.git New testcase for PR355 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14062 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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; +}