Home | History | Annotate | Download | only in SemaCXX
      1 // RUN: %clang_cc1 -fsyntax-only -verify -fno-rtti %s
      2 
      3 namespace std {
      4   class type_info;
      5 }
      6 
      7 void f()
      8 {
      9   (void)typeid(int); // expected-error {{cannot use typeid with -fno-rtti}}
     10 }
     11