[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / SemaObjC / access-property-getter.m
blob94a00f4914d17575533bc54e7567df5645f13494
1 // RUN: %clang_cc1 -verify %s
3 @protocol Protocol
4 - (oneway void) method;
5 @end
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) {
14     object.method;