xref: /llvm-project/clang/test/FixIt/fixit-missing-self-in-block.m (revision 0f1c1be1968076d6f96f8a7bcc4a15cf195ecd97)
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
20