1 // RUN: %clang_cc1 -emit-llvm -fblocks -debug-info-kind=limited \
2 // RUN: -fsanitize=nullability-return %s -o - | FileCheck %s
4 // Check that santizer check calls have a !dbg location.
5 // CHECK: call void {{.*}}@__ubsan_handle_nullability_return_v1_abort
11 @interface NSObject<NSObject> {}
14 #pragma clang assume_nonnull begin
15 @interface NSString : NSObject
16 + (instancetype)stringWithFormat:(NSString *)format, ...;
19 @interface NSIndexPath : NSObject {}
21 #pragma clang assume_nonnull end
23 @interface B : NSObject
25 id foo(NSIndexPath *indexPath) {
26 return [B withBlock:^{
27 return [NSString stringWithFormat:@"%ld",
28 (long)[indexPath indexAtPosition:1]];