opnsense-src/test/SemaTemplate/template-id-printing.cpp

14 lines
272 B
C++
Raw Normal View History

2010-01-01 05:34:51 -05:00
// RUN: %clang_cc1 -fsyntax-only -ast-print %s | FileCheck %s
2009-11-04 10:04:32 -05:00
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>;
}