[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / CodeGenObjC / disable-direct-method.m
blobfb5d5702fa30162df283de761a10037b3060c9df
1 // RUN: %clang_cc1 -emit-llvm -triple x86_64-apple-darwin10 -fobjc-disable-direct-methods-for-testing %s -o - | FileCheck %s
3 @interface Y
4 @property (direct) int direct_property;
5 @end
6 @implementation Y @end
8 // CHECK: @OBJC_PROP_NAME_ATTR_ = private unnamed_addr constant [16 x i8] c"direct_property\00"
9 // CHECK: @"_OBJC_$_PROP_LIST_Y" =
10 // CHECK-SAME: @OBJC_PROP_NAME_ATTR_,
12 @interface X
13 -(void)m __attribute__((objc_direct));
14 @end
16 // CHECK-LABEL: define void @f
17 void f(X *x) {
18   [x m];
20   // CHECK: call void bitcast ({{.*}} @objc_msgSend to {{.*}})