1 // RUN: clang-cc -fsyntax-only -verify -pedantic %s
5 extern int charStarFunc(char *);
6 extern int charFunc(char);
10 -(int)charStarMeth:(char *)s;
11 -structMeth:(struct S)s;
12 -structMeth:(struct S)s :(struct S)s2;
16 id obj = [Test alloc];
19 charStarFunc(1); // expected-warning {{incompatible integer to pointer conversion passing 'int', expected 'char *'}}
20 charFunc("abc"); // expected-warning {{incompatible pointer to integer conversion passing 'char [4]', expected 'char'}}
22 [obj charStarMeth:1]; // expected-warning {{incompatible integer to pointer conversion sending 'int'}}
23 [obj structMeth:1]; // expected-error {{incompatible type sending 'int'}}
24 [obj structMeth:sInst :1]; // expected-error {{incompatible type sending 'int'}}