explicit-instantiation.cpp revision aba43bb13b3aa3e81990989375fba3a902bfe1c2
1// RUN: clang-cc -emit-llvm -femit-all-decls -o %t %s &&
2// RUN: grep "_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    return t + u;
8  }
9};
10
11template struct plus<int, long, long>;
12