llvm-project
18 строк · 435.0 Байт
1// RUN: %clang_cc1 -fblocks -fsyntax-only -fobjc-arc -x objective-c %s.result
2// RUN: arcmt-test --args -triple x86_64-apple-darwin10 -fblocks -fsyntax-only -x objective-c %s > %t
3// RUN: diff %t %s.result
4
5#include "Common.h"
6
7dispatch_object_t getme(void);
8
9void func(dispatch_object_t o) {
10dispatch_retain(o);
11dispatch_release(o);
12dispatch_retain(getme());
13}
14
15void func2(xpc_object_t o) {
16xpc_retain(o);
17xpc_release(o);
18}
19