DIAG(error_missing_property_ivar_decl, ERROR,
"synthesized property %0 must either be named the same as a compatible"
" ivar or must explicitly name an ivar")
+DIAG(error_synthesized_ivar_yet_not_supported, ERROR,
+ "instance variable synthesis not yet supported"
+ " (need to declare %0 explicitly)")
DIAG(error_property_ivar_type, ERROR,
"type of property %0 does not match type of ivar %1")
DIAG(error_weak_property, ERROR,
// Check that this is a previously declared 'ivar' in 'IDecl' interface
Ivar = IDecl->lookupInstanceVariable(PropertyIvar);
if (!Ivar) {
- if (!getLangOptions().ObjCNonFragileABI)
+ if (getLangOptions().ObjCNonFragileABI)
+ Diag(PropertyLoc, diag::error_synthesized_ivar_yet_not_supported)
+ << PropertyId;
+ else
Diag(PropertyLoc, diag::error_missing_property_ivar_decl) << PropertyId;
return 0;
}
@end
@implementation XCDeviceWillExecuteInfoBaton
- // No error is produced with compiling for -arch x86_64 (or "non-fragile" ABI)
- @synthesize sdkPath;
+ // Produce an error when compiling for -arch x86_64 (or "non-fragile" ABI)
+ @synthesize sdkPath; // expected-error{{instance variable synthesis not yet supported (need to declare 'sdkPath' explicitly)}}
@end