[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / CodeGenObjC / ivar-layout-flexible-array.m
blob28849c86c2afc5e1c188ceb614dc41a326dc9a18
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin -Wno-objc-root-class -fobjc-arc -emit-llvm -o - %s | FileCheck %s
3 // rdar://problem/21054495
4 @interface FlexibleArrayMember {
5   char flexible_array[][4][2];
7 @end
8 @implementation FlexibleArrayMember
9 @end
10 // CHECK: @OBJC_METH_VAR_NAME_{{.*}} = private unnamed_addr constant {{.*}} c"flexible_array\00"
11 // CHECK-NEXT: @OBJC_METH_VAR_TYPE_{{.*}} = private unnamed_addr constant {{.*}} c"^[4[2c]]\00"
14 typedef char FlexibleArray[];
16 struct Packet {
17   int size;
18   FlexibleArray data;
21 @interface VariableSizeIvar {
22   struct Packet flexible_struct;
24 @end
25 @implementation VariableSizeIvar
26 @end
27 // CHECK: @OBJC_METH_VAR_NAME_{{.*}} = private unnamed_addr constant {{.*}} c"flexible_struct\00"
28 // CHECK-NEXT: @OBJC_METH_VAR_TYPE_{{.*}} = private unnamed_addr constant {{.*}} c"{Packet=\22size\22i\22data\22[0c]}\00"