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