hanchenye-llvm-project/clang/test/SemaCXX/no-rtti.cpp

11 lines
182 B
C++

// RUN: %clang_cc1 -fsyntax-only -verify -fno-rtti %s
namespace std {
class type_info;
}
void f()
{
(void)typeid(int); // expected-error {{cannot use typeid with -fno-rtti}}
}