forked from OSchip/llvm-project
Add test for out-of-line definition of a conversion function
llvm-svn: 79679
This commit is contained in:
parent
e5bbb7d4ef
commit
25e8e363df
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue