blob: 87f1b4862e59fbf7deabf613927f0739c16d1a06 [file] [log] [blame]
Steve Naroff9c6c3592008-01-13 17:10:08 +00001// RUN: clang -fsyntax-only -verify -std=c90 %s
2void
3foo (void)
4{
5 struct b;
6 struct b* x = 0;
7 struct b* y = &*x;
8}
9
10void foo2 (void)
11{
12 typedef int (*arrayptr)[];
13 arrayptr x = 0;
14 arrayptr y = &*x;
15}
16
17void foo3 (void)
18{
19 void* x = 0;
20 void* y = &*x; // expected-error {{invalid lvalue in address expression}}
21}
22