1 // RUN: %clang_cc1 -verify %s
3 typedef struct objc_class *Class;
6 - (void)addObserver:(XX*)o; // expected-note 2{{passing argument to parameter 'o' here}}
21 [obj addObserver:self]; // expected-warning {{incompatible pointer types sending 'Class' to parameter of type 'XX *'}}
23 [obj addObserver:whatever]; // expected-warning {{incompatible pointer types sending 'Class' to parameter of type 'XX *'}}