// PR c++/33463

namespace std
{
  class type_info {};
}

template<int> void foo()
{
  !typeid(void); // { dg-error "!typeid\\(void\\)|candidate is" }
  // { dg-message "" "match candidate text" { target *-*-* } .-1 }
}
