1 // RUN: %clang_cc1 -triple arm64e-apple-ios13.0 -debug-info-kind=standalone -fobjc-arc -fsanitize=nullability-return \
2 // RUN: %s -emit-llvm -o - | FileCheck %s
8 @interface NSString : NSObject
11 // CHECK: define {{.*}}@"\01-[MyData setData:]"
12 // CHECK: [[DATA:%.*]] = alloca %struct.Data
13 // CHECK: call noundef ptr @_ZN4DataD1Ev(ptr {{[^,]*}} [[DATA]]){{.*}}, !dbg [[DATA_PROPERTY_LOC:![0-9]+]]
14 // CHECK-NEXT: ret void
16 // CHECK: define {{.*}}@"\01-[MyData string]"
17 // CHECK: call void @__ubsan_handle_nullability_return_v1_abort{{.*}}, !dbg [[STRING_PROPERTY_LOC:![0-9]+]]
20 @interface MyData : NSObject
25 // CHECK-DAG: [[DATA_PROPERTY_LOC]] = !DILocation(line: [[@LINE+1]]
26 @property struct Data data;
28 // CHECK-DAG: [[STRING_PROPERTY_LOC]] = !DILocation(line: [[@LINE+1]]
29 @property (nonnull) NSString *string;
33 @implementation MyData