cxx-ambig-decl-expr.cpp 320 B

12345678910111213
  1. // RUN: %clang_cc1 -fsyntax-only -verify %s
  2. struct X {
  3. template<typename T, typename U>
  4. static void f(int, int);
  5. };
  6. void f() {
  7. void (*ptr)(int, int) = &X::f<int, int>;
  8. unknown *p = 0; // expected-error {{unknown type name 'unknown'}}
  9. unknown * p + 0; // expected-error {{undeclared identifier 'unknown'}}
  10. }