blob: c054164e750cce9981bc3f6b841079f6f9706e73 [file] [log] [blame]
Argyrios Kyrtzidisf58f45e2009-05-22 10:24:42 +00001// RUN: clang-cc -fsyntax-only -verify %s
2
3void 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}