summaryrefslogtreecommitdiffstats
path: root/test/SemaTemplate/template-id-printing.cpp
blob: fcd4974a7611c99078e4013f1a9d3a7a3ecf0a9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %clang_cc1 -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>;
}
OpenPOWER on IntegriCloud