Mercurial > hg > CbC > CbC_llvm
annotate clang/test/ARCMT/dispatch.m @ 180:680fa57a2f20
fix compile errors.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 30 May 2020 17:44:06 +0900 |
parents | 1d019706d866 |
children |
rev | line source |
---|---|
150 | 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 | |
7 dispatch_object_t getme(void); | |
8 | |
9 void func(dispatch_object_t o) { | |
10 dispatch_retain(o); | |
11 dispatch_release(o); | |
12 dispatch_retain(getme()); | |
13 } | |
14 | |
15 void func2(xpc_object_t o) { | |
16 xpc_retain(o); | |
17 xpc_release(o); | |
18 } |