aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenObjC/no-sanitize.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenObjC/no-sanitize.m')
-rw-r--r--test/CodeGenObjC/no-sanitize.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/CodeGenObjC/no-sanitize.m b/test/CodeGenObjC/no-sanitize.m
index 39f8575670d5..07a196b6419d 100644
--- a/test/CodeGenObjC/no-sanitize.m
+++ b/test/CodeGenObjC/no-sanitize.m
@@ -1,8 +1,9 @@
-// RUN: %clang_cc1 %s -emit-llvm -fsanitize=address -o - | FileCheck %s
+// 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