[cfe-commits] r81916 - /cfe/trunk/test/SemaTemplate/constructor-template.cpp

Douglas Gregor dgregor at apple.com
Tue Sep 15 14:14:05 PDT 2009


Author: dgregor
Date: Tue Sep 15 16:14:05 2009
New Revision: 81916

URL: http://llvm.org/viewvc/llvm-project?rev=81916&view=rev
Log:
Commit test case from PR4655, which tests the canonical-types fix in r81913

Modified:
    cfe/trunk/test/SemaTemplate/constructor-template.cpp

Modified: cfe/trunk/test/SemaTemplate/constructor-template.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaTemplate/constructor-template.cpp?rev=81916&r1=81915&r2=81916&view=diff

==============================================================================
--- cfe/trunk/test/SemaTemplate/constructor-template.cpp (original)
+++ cfe/trunk/test/SemaTemplate/constructor-template.cpp Tue Sep 15 16:14:05 2009
@@ -46,3 +46,8 @@
   Outer<int> oi(xi);
   Outer<float> of(xi);
 }
+
+// PR4655
+template<class C> struct A {};
+template <> struct A<int>{A(const A<int>&);};
+struct B { A<int> x; B(B& a) : x(a.x) {} };





More information about the cfe-commits mailing list