]> granicus.if.org Git - clang/commitdiff
Commit test case from PR4655, which tests the canonical-types fix in r81913
authorDouglas Gregor <dgregor@apple.com>
Tue, 15 Sep 2009 21:14:05 +0000 (21:14 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 15 Sep 2009 21:14:05 +0000 (21:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81916 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaTemplate/constructor-template.cpp

index 41b0d29cf83a74196edbe263c16b0d642e335227..acd845bc2fd58e90ac71285a3c62eb401aad9c1e 100644 (file)
@@ -46,3 +46,8 @@ void test_X1(X1<int> xi) {
   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) {} };