blob: 1480a52e4a5f183ff3849ef3ece327d14014f7fe [file] [log] [blame]
Steve Naroffc70e8d92009-07-16 00:25:06 +00001// RUN: clang-cc -fsyntax-only -verify %s
2
3typedef struct objc_object {
4 struct objc_class *isa;
5} *id;
6
7@interface Whatever
8+self;
9@end
10
11static 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}