xref: /minix3/external/bsd/llvm/dist/clang/test/FixIt/fixit-missing-self-in-block.m (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc// RUN: cp %s %t
2*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -x objective-c -fobjc-arc -fblocks -fixit %t
3*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -x objective-c -fobjc-arc -fblocks -Werror %t
4*f4a2713aSLionel Sambuc// rdar://11194874
5*f4a2713aSLionel Sambuc
6*f4a2713aSLionel Sambuc@interface Root @end
7*f4a2713aSLionel Sambuc
8*f4a2713aSLionel Sambuc@interface I : Root
9*f4a2713aSLionel Sambuc{
10*f4a2713aSLionel Sambuc  int _bar;
11*f4a2713aSLionel Sambuc}
12*f4a2713aSLionel Sambuc@end
13*f4a2713aSLionel Sambuc
14*f4a2713aSLionel Sambuc@implementation I
15*f4a2713aSLionel Sambuc  - (void)foo{
16*f4a2713aSLionel Sambuc      ^{
17*f4a2713aSLionel Sambuc           _bar = 3;
18*f4a2713aSLionel Sambuc       }();
19*f4a2713aSLionel Sambuc  }
20*f4a2713aSLionel Sambuc@end
21