// RUN: %clang_cc1 -verify %s
@protocolProtocol- (onewayvoid)method;@endvoidaccessMethodViaPropertySyntaxAndTriggerWarning(id<Protocol>object){
object.method;// expected-warning {{property access result unused - getters should not be used for side effects}}
}// rdar://19137815
#pragma clang diagnostic ignored "-Wunused-getter-return-value"
voidaccessMethodViaPropertySyntaxWhenWarningIsIgnoredDoesNotTriggerWarning(id<Protocol>object){
object.method;}