Argyrios Kyrtzidis | f58f45e | 2009-05-22 10:24:42 +0000 | [diff] [blame^] | 1 | // RUN: clang-cc -fsyntax-only -verify %s |
2 | |||||
3 | void f() { | ||||
4 | typedef int T; | ||||
5 | int x, *px; | ||||
6 | |||||
7 | // Type id. | ||||
8 | (T())x; // expected-error {{used type 'T (void)'}} | ||||
9 | (T())+x; // expected-error {{used type 'T (void)'}} | ||||
10 | (T())*px; // expected-error {{used type 'T (void)'}} | ||||
11 | |||||
12 | // Expression. | ||||
13 | x = (T()); | ||||
14 | x = (T())/x; | ||||
15 | } |