mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-22 15:31:00 +00:00
29477dc82e
There is no way to apply sanitizer suppressions to ObjC blocks. A reasonable default is to have blocks inherit their parent's sanitizer options. rdar://32769634 Differential Revision: https://reviews.llvm.org/D40668 llvm-svn: 320132
10 lines
268 B
Objective-C
10 lines
268 B
Objective-C
// RUN: %clang_cc1 %s -emit-llvm -fsanitize=address -fblocks -o - | FileCheck %s
|
|
|
|
@interface I0 @end
|
|
@implementation I0
|
|
// CHECK-NOT: sanitize_address
|
|
- (void) im0: (int) a0 __attribute__((no_sanitize("address"))) {
|
|
int (^blockName)() = ^int() { return 0; };
|
|
}
|
|
@end
|