Add LLVM runtime checks to build path
[clang/acc.git] / test / SemaCXX / typeid.cpp
blobf9ad7592187c0d8af21d8fc3ce0d0c69324c5cc1
1 // RUN: clang-cc -fsyntax-only -verify %s
3 void f()
5 (void)typeid(int); // expected-error {{error: you need to include <typeinfo> before using the 'typeid' operator}}
8 // FIXME: This should really include <typeinfo>, but we don't have that yet.
9 namespace std {
10 class type_info;
13 void g()
15 (void)typeid(int);