Add test for out-of-line definition of a conversion function

llvm-svn: 79679
This commit is contained in:
Douglas Gregor 2009-08-21 22:23:24 +00:00
parent e5bbb7d4ef
commit 25e8e363df
1 changed files with 7 additions and 0 deletions

View File

@ -17,6 +17,8 @@ public:
void f3(size_type) const;
void f4() ;
operator T*() const;
T value;
};
@ -56,3 +58,8 @@ X0<T, U>::X0(int x) : value(x) { }
template<typename T, typename U>
X0<T, U>::~X0() { }
// Test out-of-line conversion functions.
template<typename T, typename U>
X0<T, U>::operator T*() const {
return &value;
}