Debian Codegraph @

clang/test/FixIt/fixit-missing-self-in-block.m

raw
1 // RUN: cp %s %t
2 // RUN: %clang_cc1 -x objective-c -fobjc-arc -fblocks -fixit %t
3 // RUN: %clang_cc1 -x objective-c -fobjc-arc -fblocks -Werror %t
4
5 @interface Root @end
6
7 @interface I : Root
8 {
9 int _bar;
10 }
11 @end
12
13 @implementation I
14 - (void)foo{
15 ^{
16 _bar = 3;
17 }();
18 }
19 @end