aboutsummaryrefslogtreecommitdiff
path: root/test/SemaTemplate/template-id-printing.cpp
blob: 13250943e92c931b8ef1b28de6f8d7beaa1c1718 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: clang-cc -fsyntax-only -ast-print %s | FileCheck %s
namespace N {
  template<typename T, typename U> void f(U);
  template<int> void f();
}

void g() {
  // CHECK: N::f<int>(3.14
  N::f<int>(3.14);
  
  // CHECK: N::f<double>
  void (*fp)(int) = N::f<double>;
}