Shih-wei Liao | f8fd82b | 2010-02-10 11:10:31 -0800 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -emit-llvm -triple i686-pc-linux-gnu -o %t %s |
2 | // RUN: grep "define i32 @_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 | }; | ||||
8 | |||||
9 | template<typename T, typename U, typename Result> | ||||
10 | Result plus<T, U, Result>::operator()(const T& t, const U& u) const { | ||||
11 | return t + u; | ||||
12 | } | ||||
13 | |||||
14 | template struct plus<int, long, long>; |