blob: 58c7769638cbe72ef29b47442682013966dbb8ab [file] [log] [blame]
Ted Kremenek30660a82012-03-06 20:06:33 +00001// 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
Ted Kremenek30660a82012-03-06 20:06:33 +00007dispatch_object_t getme(void);
8
9void func(dispatch_object_t o) {
10 dispatch_retain(o);
11 dispatch_release(o);
12 dispatch_retain(getme());
13}
14
15void func2(xpc_object_t o) {
16 xpc_retain(o);
17 xpc_release(o);
18}