summaryrefslogtreecommitdiff
path: root/clang/test/SemaObjC/block-attr.m
blob: 80092fc31c1adbc00612e4e7b7677190e00d376e (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -verify -fblocks -fobjc-gc-only %s
// RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin10 -fsyntax-only -verify -fblocks -fobjc-gc-only %s

@interface Thing  {}

@property void(^someBlock)(void); // expected-warning {{'copy' attribute must be specified for the block property}}
@property(copy)  void(^OK)(void);

// rdar://8820813
@property (readonly) void (^block)(void); // readonly property is OK

@end