1 // RUN: %clang_cc1 -verify %s
6 T (X::* f1())(int) { return 0; }
12 template void f0<int>();
21 Y() { V = ValueType(); }
35 // Instantiation of local classes with virtual functions.
36 namespace local_class_with_virtual_functions {
37 template <typename T> struct X { };
38 template <typename T> struct Y { };
42 struct Z : public X<Y<T>*> {
43 virtual void g(Y<T>* y) { }
44 void g2(int x) {(void)x;}
51 void test() { f<S>(); }
58 typedef int (X::*pmf_type)();
59 class X : public T { };
61 pmf_type pmf = &T::foo;
64 struct Y { int foo(); };
66 template void foo<Y>();