blob: b47b3758622dd0c6aa2b0d317480967d22e86b8e [file] [log] [blame]
// RUN: clang-cc -emit-llvm -triple i686-pc-linue-gnu -o %t %s
// RUN: grep "define i32 @_ZNK4plusIillEclERKiRKl" %t | count 1
template<typename T, typename U, typename Result>
struct plus {
Result operator()(const T& t, const U& u) const;
};
template<typename T, typename U, typename Result>
Result plus<T, U, Result>::operator()(const T& t, const U& u) const {
return t + u;
}
template struct plus<int, long, long>;