diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-09-15 21:14:05 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-09-15 21:14:05 +0000 |
commit | c7e406b2ec8ae95ff2f65215330b127c437472b9 (patch) | |
tree | f539bc21085fae44c9f18a4377ce2ba2f003265b /test/SemaTemplate/constructor-template.cpp | |
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
Diffstat (limited to 'test/SemaTemplate/constructor-template.cpp')
-rw-r--r-- | test/SemaTemplate/constructor-template.cpp | 5 |
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) {} }; |