annotate clang/test/Rewriter/rewrite-block-property.m @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fblocks -fms-extensions -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 %s -o %t-rw.cpp
anatofuz
parents:
diff changeset
2 // RUN: %clang_cc1 -fsyntax-only -fblocks -Wno-address-of-temporary -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 // rdar://9055596
anatofuz
parents:
diff changeset
5 void *sel_registerName(const char *);
anatofuz
parents:
diff changeset
6
anatofuz
parents:
diff changeset
7 typedef void (^FooBlock) (int foo, int bar, int baz);
anatofuz
parents:
diff changeset
8
anatofuz
parents:
diff changeset
9 @interface Foo { }
anatofuz
parents:
diff changeset
10 @property (readwrite, copy, nonatomic) FooBlock fooBlock;
anatofuz
parents:
diff changeset
11 @end
anatofuz
parents:
diff changeset
12
anatofuz
parents:
diff changeset
13 static void Bar (Foo * foo) {
anatofuz
parents:
diff changeset
14 foo.fooBlock (1,2,3);
anatofuz
parents:
diff changeset
15 }