commit | c7e406b2ec8ae95ff2f65215330b127c437472b9 | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Tue Sep 15 21:14:05 2009 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Tue Sep 15 21:14:05 2009 +0000 |
tree | f539bc21085fae44c9f18a4377ce2ba2f003265b | |
parent | 14e0b3d8a58d8e2d6d154c17f13e9881d3740784 [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
diff --git a/test/SemaTemplate/constructor-template.cpp b/test/SemaTemplate/constructor-template.cpp index 41b0d29..acd845b 100644 --- a/test/SemaTemplate/constructor-template.cpp +++ b/test/SemaTemplate/constructor-template.cpp
@@ -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) {} };