blob: ab9174e8f406d710d79be84ce88e44fdf5cedf68 [file] [log] [blame]
Shih-wei Liaof8fd82b2010-02-10 11:10:31 -08001// RUN: %clang_cc1 -emit-llvm -triple i686-pc-linux-gnu -o %t %s
2// RUN: grep "define i32 @_ZNK4plusIillEclERKiRKl" %t | count 1
3
4template<typename T, typename U, typename Result>
5struct plus {
6 Result operator()(const T& t, const U& u) const;
7};
8
9template<typename T, typename U, typename Result>
10Result plus<T, U, Result>::operator()(const T& t, const U& u) const {
11 return t + u;
12}
13
14template struct plus<int, long, long>;