blob: feb185fbe3f282b8d23b599cfce29782b3822686 [file] [log] [blame]
Douglas Gregor06b70802010-07-15 21:05:01 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3struct X {
4 template<typename T, typename U>
5 static void f(int, int);
6};
7
8void f() {
9 void (*ptr)(int, int) = &X::f<int, int>;
Richard Smith40b2e192012-08-23 20:19:14 +000010
11 unknown *p = 0; // expected-error {{unknown type name 'unknown'}}
12 unknown * p + 0; // expected-error {{undeclared identifier 'unknown'}}
Douglas Gregor06b70802010-07-15 21:05:01 +000013}