Steve Naroff | c70e8d9 | 2009-07-16 00:25:06 +0000 | [diff] [blame^] | 1 | // RUN: clang-cc -fsyntax-only -verify %s |
2 | |||||
3 | typedef struct objc_object { | ||||
4 | struct objc_class *isa; | ||||
5 | } *id; | ||||
6 | |||||
7 | @interface Whatever | ||||
8 | +self; | ||||
9 | @end | ||||
10 | |||||
11 | static void func() { | ||||
12 | |||||
13 | id x; | ||||
14 | |||||
15 | // FIXME: The following needs to compile without error. I will fix this tomorrow (7/15/09). Until I do, we will produce an error. | ||||
16 | [x->isa self]; // expected-error {{member reference base type 'id' is not a structure or union}} | ||||
17 | } |