1 // RUN: %clang_cc1 %s -fsyntax-only -Wobjc-property-implementation -Watomic-property-with-user-defined-accessor -Wunused 2> %t.err
2 // RUN: FileCheck -input-file=%t.err %s
13 @implementation I(cat)
16 // CHECK: warning: property 'prop1' requires method
17 // CHECK: warning: property 'prop2' requires method
18 // CHECK: warning: property 'prop3' requires method
27 @synthesize prop1, prop2, prop3;
28 -(int) prop1 { return 0; }
29 -(int) prop2 { return 0; }
30 -(int) prop3 { return 0; }
33 // CHECK: warning: writable atomic property 'prop1'
34 // CHECK: warning: writable atomic property 'prop2'
35 // CHECK: warning: writable atomic property 'prop3'
38 // Add enough variables to exceed the small storage of Scope::DeclSetTy.
79 // CHECK: warning: unused variable 'v1'
80 // CHECK: warning: unused variable 'v2'
81 // CHECK: warning: unused variable 'v3'
82 // CHECK: warning: unused variable 'v4'
83 // CHECK: warning: unused variable 'v5'
84 // CHECK: warning: unused variable 'v6'
85 // CHECK: warning: unused variable 'v7'
86 // CHECK: warning: unused variable 'v8'
87 // CHECK: warning: unused variable 'v9'
88 // CHECK: warning: unused variable 'v10'
89 // CHECK: warning: unused variable 'v11'
90 // CHECK: warning: unused variable 'v12'
91 // CHECK: warning: unused variable 'v13'
92 // CHECK: warning: unused variable 'v14'
93 // CHECK: warning: unused variable 'v15'
94 // CHECK: warning: unused variable 'v16'
95 // CHECK: warning: unused variable 'v17'
96 // CHECK: warning: unused variable 'v18'
97 // CHECK: warning: unused variable 'v19'
98 // CHECK: warning: unused variable 'v20'
99 // CHECK: warning: unused variable 'v21'
100 // CHECK: warning: unused variable 'v22'
101 // CHECK: warning: unused variable 'v23'
102 // CHECK: warning: unused variable 'v24'
103 // CHECK: warning: unused variable 'v25'
104 // CHECK: warning: unused variable 'v26'
105 // CHECK: warning: unused variable 'v27'
106 // CHECK: warning: unused variable 'v28'
107 // CHECK: warning: unused variable 'v29'
108 // CHECK: warning: unused variable 'v30'
109 // CHECK: warning: unused variable 'v31'
110 // CHECK: warning: unused variable 'v32'
111 // CHECK: warning: unused variable 'v33'
112 // CHECK: warning: unused variable 'v34'
113 // CHECK: warning: unused variable 'v35'
114 // CHECK: warning: unused variable 'v36'
115 // CHECK: warning: unused variable 'v37'
116 // CHECK: warning: unused variable 'v38'