blob: 80a70a7b562fb5c0e2d3c36a7b45e03faa537bc6 [file] [log] [blame]
// RUN: clang -fsyntax-only -verify %s
void f()
{
(void)typeid(int); // expected-error {{error: you need to include <typeinfo> before using the 'typeid' operator}}
}
// FIXME: This should really include <typeinfo>, but we don't have that yet.
namespace std {
class type_info;
}
void g()
{
(void)typeid(int);
}