p2-template-id.cpp revision f8fd82ba49827db0f6a6ba00c55a7b56b12a19fa
1// RUN: %clang_cc1 -fsyntax-only -verify %s 2 3namespace N1 { 4 struct X { }; 5 int& f(void*); 6} 7 8namespace N2 { 9 template<typename T> struct Y { }; 10} 11 12namespace N3 { 13 void test() { 14 int &ir = f((N2::Y<N1::X>*)0); 15 } 16} 17 18int g(void *); 19long g(N1::X); 20 21namespace N1 { 22 void h(int (*)(void *)); 23} 24 25void test() { 26 h((&g)); 27} 28