aboutsummaryrefslogtreecommitdiff
path: root/test/SemaTemplate/constructor-template.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-09-15 21:14:05 +0000
committerDouglas Gregor <dgregor@apple.com>2009-09-15 21:14:05 +0000
commitc7e406b2ec8ae95ff2f65215330b127c437472b9 (patch)
treef539bc21085fae44c9f18a4377ce2ba2f003265b /test/SemaTemplate/constructor-template.cpp
parent14e0b3d8a58d8e2d6d154c17f13e9881d3740784 (diff)
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
Diffstat (limited to 'test/SemaTemplate/constructor-template.cpp')
-rw-r--r--test/SemaTemplate/constructor-template.cpp5
1 files changed, 5 insertions, 0 deletions
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<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) {} };