1 // RUN: %clang_cc1 -fsyntax-only -verify %s
5 - (void)foo:(Class)class; // expected-note{{passing argument to parameter 'class' here}}
13 [f foo:f]; // expected-warning {{incompatible pointer types sending 'Foo *' to parameter of type 'Class'}}
14 c = f; // expected-warning {{incompatible pointer types assigning to 'Class' from 'Foo *'}}
24 s1 = i; // expected-warning {{incompatible pointer types assigning to 'SEL' from 'id'}}
25 i = s1; // expected-warning {{incompatible pointer types assigning to 'id' from 'SEL'}}
29 s1 = c; // expected-warning {{incompatible pointer types assigning to 'SEL' from 'Class'}}
31 c = s1; // expected-warning {{incompatible pointer types assigning to 'Class' from 'SEL'}}
35 f = c; // expected-warning {{incompatible pointer types assigning to 'Foo *' from 'Class'}}
37 f = s1; // expected-warning {{incompatible pointer types assigning to 'Foo *' from 'SEL'}}
41 s1 = f; // expected-warning {{incompatible pointer types assigning to 'SEL' from 'Foo *'}}