Douglas Gregor | aba43bb | 2009-05-26 20:50:29 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -emit-llvm -femit-all-decls -o %t %s && |
2 | // RUN: grep "_ZNK4plusIillEclERKiRKl" %t | count 1 | ||||
3 | |||||
4 | template<typename T, typename U, typename Result> | ||||
5 | struct plus { | ||||
6 | Result operator()(const T& t, const U& u) const { | ||||
7 | return t + u; | ||||
8 | } | ||||
9 | }; | ||||
10 | |||||
11 | template struct plus<int, long, long>; |