Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
Sebastian Redl | c42e118 | 2008-11-11 11:37:55 +0000 | [diff] [blame] | 2 | |
3 | // FIXME: This should really include <typeinfo>, but we don't have that yet. | ||||
4 | namespace std { | ||||
5 | class type_info; | ||||
6 | } | ||||
7 | |||||
8 | void f() | ||||
9 | { | ||||
10 | (void)typeid(int); | ||||
11 | (void)typeid(0); | ||||
12 | (void)typeid 1; // expected-error {{error: expected '(' after 'typeid'}} | ||||
13 | } |