10 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s2// expected-no-diagnostics3 4template<class T> class Array { /* ... */ }; 5template<class T> void sort(Array<T>& v);6 7// explicit specialization for sort(Array<int>&) 8// with deduced template-argument of type int 9template<> void sort(Array<int>&);10