aboutsummaryrefslogtreecommitdiff
path: root/test/SemaTemplate/constructor-template.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-11-13 23:59:09 +0000
committerDouglas Gregor <dgregor@apple.com>2009-11-13 23:59:09 +0000
commitfd47648b5d351ff6d1a3e886e1c3d10712ba4675 (patch)
treee87bd20c38f9553a171e0db9dc008ab8ce4b2f65 /test/SemaTemplate/constructor-template.cpp
parente99cc4504946718e4f288f6ba4652c3c7ffa6996 (diff)
Revert r88718, which does NOT solve the constructor-template-as-copy-constructor issue. Big thanks to John for finding this
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88724 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/constructor-template.cpp')
-rw-r--r--test/SemaTemplate/constructor-template.cpp20
1 files changed, 1 insertions, 19 deletions
diff --git a/test/SemaTemplate/constructor-template.cpp b/test/SemaTemplate/constructor-template.cpp
index f059766356..79bf7c585e 100644
--- a/test/SemaTemplate/constructor-template.cpp
+++ b/test/SemaTemplate/constructor-template.cpp
@@ -1,4 +1,5 @@
// RUN: clang-cc -fsyntax-only -verify %s
+
struct X0 { // expected-note{{candidate}}
X0(int); // expected-note{{candidate}}
template<typename T> X0(T);
@@ -51,22 +52,3 @@ template<class C> struct A {};
template <> struct A<int>{A(const A<int>&);};
struct B { A<int> x; B(B& a) : x(a.x) {} };
-struct X2 {
- X2();
- X2(X2&);
- template<typename T> X2(T, int = 17);
-};
-
-X2 test(bool Cond, X2 x2) {
- if (Cond)
- return x2; // okay, uses copy constructor
-
- return X2(); // expected-error{{incompatible type}}
-}
-
-struct X3 {
- template<typename T> X3(T);
-};
-
-template<> X3::X3(X3); // expected-error{{no function template matches}}
-