1 // RUN: %clang_cc1 -verify %s
4 - (oneway void) method;
7 void accessMethodViaPropertySyntaxAndTriggerWarning(id<Protocol> object) {
8 object.method; // expected-warning {{property access result unused - getters should not be used for side effects}}
11 #pragma clang diagnostic ignored "-Wunused-getter-return-value"
13 void accessMethodViaPropertySyntaxWhenWarningIsIgnoredDoesNotTriggerWarning(id<Protocol> object) {