cxx-typeid.cpp revision c42e1183846228a7fa5143ad76507d6d60f5c6f3
1// RUN: clang -fsyntax-only -verify %s 2 3// FIXME: This should really include <typeinfo>, but we don't have that yet. 4namespace std { 5 class type_info; 6} 7 8void f() 9{ 10 (void)typeid(int); 11 (void)typeid(0); 12 (void)typeid 1; // expected-error {{error: expected '(' after 'typeid'}} 13} 14