mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-30 17:21:10 +00:00
6ba7afb8e1
c = Block_copy(b); Block_release(c); ----> c = [b copy]; <removed> rdar://9408211 llvm-svn: 171454
16 lines
337 B
Plaintext
16 lines
337 B
Plaintext
// 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 = [b copy];
|
|
}
|
|
|
|
void func2(id b) {
|
|
id c = [b copy];
|
|
}
|