// RUN: %clang_cc1 %s -fsyntax-only
// FIXME: This test needs needs to be run with -verify
@interfaceNSObject+ alloc;- init;@endstruct D {double d;};@interfaceFoo:NSObject- method:(int)a;- method:(int)a;@end@interfaceBar:NSObject- method:(void*)a;@end@interfaceCar:NSObject- method:(struct D)a;@end@interfaceZar:NSObject- method:(float)a;@end@interfaceRar:NSObject- method:(float)a;@endintmain(void){id xx =[[Car alloc] init];// expected-warning {{incompatible types assigning 'int' to 'id'}}
[xxmethod:4];}