aboutsummaryrefslogtreecommitdiff
path: root/test/CXX/temp/temp.spec/temp.explicit/p6.cpp
blob: 763d679db7bbb61d4e8a4988ed38e4bdc0ed5395 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: clang-cc -fsyntax-only -verify %s

template<class T> class Array { /* ... */ }; 
template<class T> void sort(Array<T>& v) { }

// instantiate sort(Array<int>&) - template-argument deduced
template void sort<>(Array<int>&);

template void sort(Array<long>&);

template<typename T, typename U> void f0(T, U*) { }

template void f0<int>(int, float*);
template void f0<>(double, float*);