1 // RUN: %clang_cc1 -fsyntax-only -verify %s
4 - (void)foo:(Class)class; // expected-note{{passing argument to parameter 'class' here}}
12 [f foo:f]; // expected-warning {{incompatible pointer types sending 'Foo *' to parameter of type 'Class'}}
13 c = f; // expected-warning {{incompatible pointer types assigning to 'Class' from 'Foo *'}}
23 s1 = i; // expected-warning {{incompatible pointer types assigning to 'SEL' from 'id'}}
24 i = s1; // expected-warning {{incompatible pointer types assigning to 'id' from 'SEL'}}
28 s1 = c; // expected-warning {{incompatible pointer types assigning to 'SEL' from 'Class'}}
30 c = s1; // expected-warning {{incompatible pointer types assigning to 'Class' from 'SEL'}}
34 f = c; // expected-warning {{incompatible pointer types assigning to 'Foo *' from 'Class'}}
36 f = s1; // expected-warning {{incompatible pointer types assigning to 'Foo *' from 'SEL'}}
40 s1 = f; // expected-warning {{incompatible pointer types assigning to 'SEL' from 'Foo *'}}