cxx-typeid.cpp revision a5728872c7702ddd09537c95bc3cbd20e1f2fb09
1// RUN: %clang_cc1 -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