Nico Weber | 11d1a69 | 2012-05-20 01:27:21 +0000 | [diff] [blame] | 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 | } |