1 // RUN: %clang_cc1 -x c++ -triple x86_64-apple-darwin10 -emit-llvm -o - %s -fsanitize=nullability-assign | FileCheck %s
16 // CHECK-LABEL: define{{.*}} void @{{.*}}f1
20 // CHECK: [[ICMP:%.*]] = icmp ne ptr {{.*}}, null, !nosanitize
21 // CHECK-NEXT: br i1 [[ICMP]], {{.*}}, !nosanitize
22 // CHECK: call void @__ubsan_handle_type_mismatch{{.*}} !nosanitize
26 // CHECK: [[ICMP:%.*]] = icmp ne ptr {{.*}}, null, !nosanitize
27 // CHECK-NEXT: br i1 [[ICMP]], {{.*}}, !nosanitize
28 // CHECK: call void @__ubsan_handle_type_mismatch{{.*}} !nosanitize
32 // CHECK-NOT: __ubsan_handle_type_mismatch