Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -ast-print %s | FileCheck %s |
Douglas Gregor | 097bfb1 | 2009-10-23 22:18:25 +0000 | [diff] [blame] | 2 | namespace N { |
3 | template<typename T, typename U> void f(U); | ||||
4 | template<int> void f(); | ||||
5 | } | ||||
6 | |||||
7 | void g() { | ||||
8 | // CHECK: N::f<int>(3.14 | ||||
9 | N::f<int>(3.14); | ||||
10 | |||||
11 | // CHECK: N::f<double> | ||||
12 | void (*fp)(int) = N::f<double>; | ||||
13 | } |