mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-05 21:12:31 +00:00
6ba7afb8e1
c = Block_copy(b); Block_release(c); ----> c = [b copy]; <removed> rdar://9408211 llvm-svn: 171454
18 lines
387 B
Objective-C
18 lines
387 B
Objective-C
// RUN: %clang_cc1 -fblocks -fsyntax-only -fobjc-arc -x objective-c %s.result
|
|
// RUN: arcmt-test --args -triple x86_64-apple-darwin10 -fblocks -fsyntax-only -x objective-c %s > %t
|
|
// RUN: diff %t %s.result
|
|
|
|
#include "Common.h"
|
|
|
|
typedef void (^blk)(int);
|
|
|
|
void func(blk b) {
|
|
blk c = Block_copy(b);
|
|
Block_release(c);
|
|
}
|
|
|
|
void func2(id b) {
|
|
id c = Block_copy(b);
|
|
Block_release(c);
|
|
}
|