From c7e406b2ec8ae95ff2f65215330b127c437472b9 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Tue, 15 Sep 2009 21:14:05 +0000 Subject: [PATCH] Commit test case from PR4655, which tests the canonical-types fix in r81913 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81916 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/SemaTemplate/constructor-template.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/SemaTemplate/constructor-template.cpp b/test/SemaTemplate/constructor-template.cpp index 41b0d29cf8..acd845bc2f 100644 --- a/test/SemaTemplate/constructor-template.cpp +++ b/test/SemaTemplate/constructor-template.cpp @@ -46,3 +46,8 @@ void test_X1(X1 xi) { Outer oi(xi); Outer of(xi); } + +// PR4655 +template struct A {}; +template <> struct A{A(const A&);}; +struct B { A x; B(B& a) : x(a.x) {} }; -- 2.40.0