summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/explicit-instantiation.cpp
blob: 38966aad2debdbe5467296ca285fbe2133260d49 (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: clang-cc -emit-llvm -femit-all-decls -o %t %s &&
// RUN: grep "_ZNK4plusIillEclERKiRKl" %t | count 1

template<typename T, typename U, typename Result>
struct plus {
  Result operator()(const T& t, const U& u) const {
    return t + u;
  }
};

template struct plus<int, long, long>;
OpenPOWER on IntegriCloud