[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / CodeGenObjC / ubsan-nullability-return-unreachable.m
blobeabc33c91e78f82df72bbef201d56d6f26ac1854
1 // RUN: %clang_cc1 -fsanitize=nullability-return -emit-llvm %s -o - -triple x86_64-apple-macosx10.10.0 -Wno-objc-root-class | FileCheck %s
3 // CHECK-LABEL: define internal i8* @"\01-[I init]"
4 // CHECK: unreachable
5 // CHECK-NEXT: }
7 #pragma clang assume_nonnull begin
8 @interface I
9 - (instancetype)init __attribute__((unavailable));
10 @end
11 @implementation I
12 - (instancetype)init __attribute__((unavailable)) { __builtin_unreachable(); }
13 @end
14 #pragma clang assume_nonnull end